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 @@ -13,21 +13,24 @@ #include <Swiften/Parser/XMLParser.h> namespace Swift { /** * Warning: This constructor is not thread-safe, because it depends on global state to * check whether it is initialized. */ 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; }; } |
Swift