1 /* 2 * Summary: old DocBook SGML parser 3 * Description: interface for a DocBook SGML non-verifying parser 4 * This code is DEPRECATED, and should not be used anymore. 5 * 6 * Copy: See Copyright for the status of this software. 7 * 8 * Author: Daniel Veillard 9 */ 10 11 #ifndef __DOCB_PARSER_H__ 12 #define __DOCB_PARSER_H__ 13 #include <libxml/xmlversion.h> 14 15 #ifdef LIBXML_DOCB_ENABLED 16 17 #include <libxml/parser.h> 18 #include <libxml/parserInternals.h> 19 20 #ifndef IN_LIBXML 21 #ifdef __GNUC__ 22 #warning "The DOCBparser module has been deprecated in libxml2-2.6.0" 23 #endif 24 #endif 25 26 #ifdef __cplusplus 27 extern "C" { 28 #endif 29 30 /* 31 * Most of the back-end structures from XML and SGML are shared. 32 */ 33 typedef xmlParserCtxt docbParserCtxt; 34 typedef xmlParserCtxtPtr docbParserCtxtPtr; 35 typedef xmlSAXHandler docbSAXHandler; 36 typedef xmlSAXHandlerPtr docbSAXHandlerPtr; 37 typedef xmlParserInput docbParserInput; 38 typedef xmlParserInputPtr docbParserInputPtr; 39 typedef xmlDocPtr docbDocPtr; 40 41 /* 42 * There is only few public functions. 43 */ 44 XML_DEPRECATED 45 XMLPUBFUN int XMLCALL 46 docbEncodeEntities(unsigned char *out, 47 int *outlen, 48 const unsigned char *in, 49 int *inlen, int quoteChar); 50 51 XML_DEPRECATED 52 XMLPUBFUN docbDocPtr XMLCALL 53 docbSAXParseDoc (xmlChar *cur, 54 const char *encoding, 55 docbSAXHandlerPtr sax, 56 void *userData); 57 XML_DEPRECATED 58 XMLPUBFUN docbDocPtr XMLCALL 59 docbParseDoc (xmlChar *cur, 60 const char *encoding); 61 XML_DEPRECATED 62 XMLPUBFUN docbDocPtr XMLCALL 63 docbSAXParseFile (const char *filename, 64 const char *encoding, 65 docbSAXHandlerPtr sax, 66 void *userData); 67 XML_DEPRECATED 68 XMLPUBFUN docbDocPtr XMLCALL 69 docbParseFile (const char *filename, 70 const char *encoding); 71 72 /** 73 * Interfaces for the Push mode. 74 */ 75 XML_DEPRECATED 76 XMLPUBFUN void XMLCALL 77 docbFreeParserCtxt (docbParserCtxtPtr ctxt); 78 XML_DEPRECATED 79 XMLPUBFUN docbParserCtxtPtr XMLCALL 80 docbCreatePushParserCtxt(docbSAXHandlerPtr sax, 81 void *user_data, 82 const char *chunk, 83 int size, 84 const char *filename, 85 xmlCharEncoding enc); 86 XML_DEPRECATED 87 XMLPUBFUN int XMLCALL 88 docbParseChunk (docbParserCtxtPtr ctxt, 89 const char *chunk, 90 int size, 91 int terminate); 92 XML_DEPRECATED 93 XMLPUBFUN docbParserCtxtPtr XMLCALL 94 docbCreateFileParserCtxt(const char *filename, 95 const char *encoding); 96 XML_DEPRECATED 97 XMLPUBFUN int XMLCALL 98 docbParseDocument (docbParserCtxtPtr ctxt); 99 100 #ifdef __cplusplus 101 } 102 #endif 103 104 #endif /* LIBXML_DOCB_ENABLED */ 105 106 #endif /* __DOCB_PARSER_H__ */ 107