From a7628ce11342eb44f318904e084d0fccac9592b4 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 4 Nov 2007 01:06:53 +0000 Subject: 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 (as dom_msg, as it's more useful there) Fix up testobject to compile once more svn path=/trunk/dom/; revision=3643 --- bindings/xml/xmlparser.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'bindings/xml/xmlparser.h') 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 #include +#include + #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); #endif -- cgit v1.2.3