diff options
Diffstat (limited to 'Swiften/Parser/LibXMLParser.h')
-rw-r--r-- | Swiften/Parser/LibXMLParser.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Swiften/Parser/LibXMLParser.h b/Swiften/Parser/LibXMLParser.h index a863867..e21770d 100644 --- a/Swiften/Parser/LibXMLParser.h +++ b/Swiften/Parser/LibXMLParser.h @@ -19,13 +19,16 @@ namespace Swift { */ class LibXMLParser : public XMLParser, public boost::noncopyable { public: - LibXMLParser(XMLParserClient* client); + LibXMLParser(XMLParserClient* client, bool allowComments = false); virtual ~LibXMLParser(); bool parse(const std::string& data, bool finalData = false); + void stopParser(); + private: static bool initialized; + bool stopped_ = false; struct Private; const std::unique_ptr<Private> p; |