diff options
Diffstat (limited to 'include/libxml/DOCBparser.h')
-rw-r--r-- | include/libxml/DOCBparser.h | 49 |
1 files changed, 30 insertions, 19 deletions
diff --git a/include/libxml/DOCBparser.h b/include/libxml/DOCBparser.h index 4b7230f1..9c908963 100644 --- a/include/libxml/DOCBparser.h +++ b/include/libxml/DOCBparser.h @@ -8,6 +8,7 @@ #ifndef __DOCB_PARSER_H__ #define __DOCB_PARSER_H__ +#include <libxml/xmlversion.h> #include <libxml/parser.h> #ifdef __cplusplus @@ -30,41 +31,51 @@ typedef xmlNodePtr docbNodePtr; /* * There is only few public functions. */ -int docbEncodeEntities(unsigned char *out, +XMLPUBFUN int XMLCALL + docbEncodeEntities(unsigned char *out, int *outlen, const unsigned char *in, int *inlen, int quoteChar); -docbDocPtr docbSAXParseDoc (xmlChar *cur, +XMLPUBFUN docbDocPtr XMLCALL + docbSAXParseDoc (xmlChar *cur, const char *encoding, docbSAXHandlerPtr sax, void *userData); -docbDocPtr docbParseDoc (xmlChar *cur, +XMLPUBFUN docbDocPtr XMLCALL + docbParseDoc (xmlChar *cur, const char *encoding); -docbDocPtr docbSAXParseFile(const char *filename, +XMLPUBFUN docbDocPtr XMLCALL + docbSAXParseFile (const char *filename, const char *encoding, docbSAXHandlerPtr sax, void *userData); -docbDocPtr docbParseFile (const char *filename, +XMLPUBFUN docbDocPtr XMLCALL + docbParseFile (const char *filename, const char *encoding); /** * Interfaces for the Push mode. */ -void docbFreeParserCtxt (docbParserCtxtPtr ctxt); -docbParserCtxtPtr docbCreatePushParserCtxt(docbSAXHandlerPtr sax, - void *user_data, - const char *chunk, - int size, - const char *filename, - xmlCharEncoding enc); -int docbParseChunk (docbParserCtxtPtr ctxt, - const char *chunk, - int size, - int terminate); -docbParserCtxtPtr docbCreateFileParserCtxt(const char *filename, - const char *encoding); -int docbParseDocument (docbParserCtxtPtr ctxt); +XMLPUBFUN void XMLCALL + docbFreeParserCtxt (docbParserCtxtPtr ctxt); +XMLPUBFUN docbParserCtxtPtr XMLCALL + docbCreatePushParserCtxt(docbSAXHandlerPtr sax, + void *user_data, + const char *chunk, + int size, + const char *filename, + xmlCharEncoding enc); +XMLPUBFUN int XMLCALL + docbParseChunk (docbParserCtxtPtr ctxt, + const char *chunk, + int size, + int terminate); +XMLPUBFUN docbParserCtxtPtr XMLCALL + docbCreateFileParserCtxt(const char *filename, + const char *encoding); +XMLPUBFUN int XMLCALL + docbParseDocument (docbParserCtxtPtr ctxt); #ifdef __cplusplus } |