diff options
author | Max Kellermann <max@duempel.org> | 2014-01-09 20:34:56 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-09 20:56:00 +0100 |
commit | 12b139beafc191d02277e7ce97b4c59f7bb0c095 (patch) | |
tree | 209bd2c58ab47ad94f848ee446b944e3cb4e9960 /src/Expat.hxx | |
parent | 2ed1c2222735ce5fccd69b7eb4595d398c3a22f6 (diff) | |
download | mpd-12b139beafc191d02277e7ce97b4c59f7bb0c095.tar.gz mpd-12b139beafc191d02277e7ce97b4c59f7bb0c095.tar.xz mpd-12b139beafc191d02277e7ce97b4c59f7bb0c095.zip |
ExpatParser: add Parse() overload with buffer
Diffstat (limited to 'src/Expat.hxx')
-rw-r--r-- | src/Expat.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Expat.hxx b/src/Expat.hxx index 0ea35c618..9fcdf61d4 100644 --- a/src/Expat.hxx +++ b/src/Expat.hxx @@ -50,6 +50,9 @@ public: XML_SetCharacterDataHandler(parser, charhndl); } + bool Parse(const char *data, size_t length, bool is_final, + Error &error); + bool Parse(InputStream &is, Error &error); gcc_pure @@ -73,6 +76,11 @@ public: parser.SetCharacterDataHandler(CharacterData); } + bool Parse(const char *data, size_t length, bool is_final, + Error &error) { + return parser.Parse(data, length, is_final, error); + } + bool Parse(InputStream &is, Error &error) { return parser.Parse(is, error); } |