diff options
author | Remko Tronçon <git@el-tramo.be> | 2012-07-15 06:11:34 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2012-07-15 06:36:09 (GMT) |
commit | fbe2f40509da8c6c25d07de18ded3c0e3194ef6b (patch) | |
tree | b607548637144c7328d81eda14cf5784fb34ceb6 /Swiften/Parser/ExpatParser.h | |
parent | 112725e9255eaa314730e4fbbbc7d8709470497f (diff) | |
download | swift-contrib-fbe2f40509da8c6c25d07de18ded3c0e3194ef6b.zip swift-contrib-fbe2f40509da8c6c25d07de18ded3c0e3194ef6b.tar.bz2 |
Hide XML parser implementations.
Diffstat (limited to 'Swiften/Parser/ExpatParser.h')
-rw-r--r-- | Swiften/Parser/ExpatParser.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Swiften/Parser/ExpatParser.h b/Swiften/Parser/ExpatParser.h index 359f786..415f40b 100644 --- a/Swiften/Parser/ExpatParser.h +++ b/Swiften/Parser/ExpatParser.h @@ -6,8 +6,8 @@ #pragma once -#include <expat.h> #include <boost/noncopyable.hpp> +#include <boost/shared_ptr.hpp> #include <Swiften/Parser/XMLParser.h> @@ -19,11 +19,10 @@ namespace Swift { bool parse(const std::string& data); - XML_Parser getParser() { - return parser_; - } + void stopParser(); private: - XML_Parser parser_; + class Private; + boost::shared_ptr<Private> p; }; } |