summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Parser/ExpatParser.h')
-rw-r--r--Swiften/Parser/ExpatParser.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Swiften/Parser/ExpatParser.h b/Swiften/Parser/ExpatParser.h
index 359f786..dcb0915 100644
--- a/Swiften/Parser/ExpatParser.h
+++ b/Swiften/Parser/ExpatParser.h
@@ -7,11 +7,12 @@
#pragma once
-#include <expat.h>
#include <boost/noncopyable.hpp>
+#include <boost/shared_ptr.hpp>
+#include <Swiften/Base/API.h>
#include <Swiften/Parser/XMLParser.h>
namespace Swift {
- class ExpatParser : public XMLParser, public boost::noncopyable {
+ class SWIFTEN_API ExpatParser : public XMLParser, public boost::noncopyable {
public:
ExpatParser(XMLParserClient* client);
@@ -20,10 +21,9 @@ namespace Swift {
bool parse(const std::string& data);
- XML_Parser getParser() {
- return parser_;
- }
+ void stopParser();
private:
- XML_Parser parser_;
+ struct Private;
+ boost::shared_ptr<Private> p;
};
}