summaryrefslogtreecommitdiff
path: root/src/xmpp/xmpp_parser.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmpp/xmpp_parser.hpp')
-rw-r--r--src/xmpp/xmpp_parser.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xmpp/xmpp_parser.hpp b/src/xmpp/xmpp_parser.hpp
index df9cda7..b87ee6d 100644
--- a/src/xmpp/xmpp_parser.hpp
+++ b/src/xmpp/xmpp_parser.hpp
@@ -35,6 +35,10 @@ public:
public:
/**
+ * Init the XML parser and install the callbacks
+ */
+ void init_xml_parser();
+ /**
* Feed the parser with some XML data
*/
int feed(const char* data, const int len, const bool is_final);
@@ -43,6 +47,10 @@ public:
*/
int parse(const int size, const bool is_final);
/**
+ * Reset the parser, so it can be used from scratch afterward
+ */
+ void reset();
+ /**
* Get a buffer provided by the xml parser.
*/
void* get_buffer(const size_t size) const;