path: root/bindings/xml/xmlparser.h
diff options
authorJohn Mark Bell <>2007-11-04 01:06:53 +0000
committerJohn Mark Bell <>2007-11-04 01:06:53 +0000
commita7628ce11342eb44f318904e084d0fccac9592b4 (patch)
treec0f000206efc85cc728334c4ed96fb824c6f511a /bindings/xml/xmlparser.h
parente61cf676eedb342b52df17b904e4dd8efc58a2db (diff)
Fix up bindings buildsystem to permit multiple bindings to be built -- quite why this wasn't done in the first place is currently beyond me.
Tidy up XML binding -- ensure all public API is prefixed dom_xml_ to avoid confusion, remove xml_alloc (it's pointless), and move xml_msg to <dom/functypes.h> (as dom_msg, as it's more useful there) Fix up testobject to compile once more svn path=/trunk/dom/; revision=3643
Diffstat (limited to 'bindings/xml/xmlparser.h')
1 files changed, 9 insertions, 8 deletions
diff --git a/bindings/xml/xmlparser.h b/bindings/xml/xmlparser.h
index d9eb240..7bf3807 100644
--- a/bindings/xml/xmlparser.h
+++ b/bindings/xml/xmlparser.h
@@ -11,28 +11,29 @@
#include <stddef.h>
#include <inttypes.h>
+#include <dom/dom.h>
#include "xmlerror.h"
-#include "functypes.h"
struct dom_document;
-typedef struct xml_parser xml_parser;
+typedef struct dom_xml_parser dom_xml_parser;
/* Create an XML parser instance */
-xml_parser *xml_parser_create(const char *enc, const char *int_enc,
- xml_alloc alloc, void *pw, xml_msg msg, void *mctx);
+dom_xml_parser *dom_xml_parser_create(const char *enc, const char *int_enc,
+ dom_alloc alloc, void *pw, dom_msg msg, void *mctx);
/* Destroy an XML parser instance */
-void xml_parser_destroy(xml_parser *parser);
+void dom_xml_parser_destroy(dom_xml_parser *parser);
/* Parse a chunk of data */
-xml_error xml_parser_parse_chunk(xml_parser *parser,
+dom_xml_error dom_xml_parser_parse_chunk(dom_xml_parser *parser,
uint8_t *data, size_t len);
/* Notify parser that datastream is empty */
-xml_error xml_parser_completed(xml_parser *parser);
+dom_xml_error dom_xml_parser_completed(dom_xml_parser *parser);
/* Retrieve the created DOM Document */
-struct dom_document *xml_parser_get_document(xml_parser *parser);
+struct dom_document *dom_xml_parser_get_document(dom_xml_parser *parser);