Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 1 | /* |
Daniel Veillard | be58697 | 2003-11-18 20:56:51 +0000 | [diff] [blame] | 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. |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 5 | * |
Daniel Veillard | be58697 | 2003-11-18 20:56:51 +0000 | [diff] [blame] | 6 | * Copy: See Copyright for the status of this software. |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 7 | * |
Daniel Veillard | be58697 | 2003-11-18 20:56:51 +0000 | [diff] [blame] | 8 | * Author: Daniel Veillard |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | #ifndef __DOCB_PARSER_H__ |
| 12 | #define __DOCB_PARSER_H__ |
Igor Zlatkovic | 76874e4 | 2003-08-25 09:05:12 +0000 | [diff] [blame] | 13 | #include <libxml/xmlversion.h> |
Daniel Veillard | a235132 | 2004-06-27 12:08:10 +0000 | [diff] [blame] | 14 | |
| 15 | #ifdef LIBXML_DOCB_ENABLED |
| 16 | |
Daniel Veillard | b59076b | 2001-04-29 17:04:07 +0000 | [diff] [blame] | 17 | #include <libxml/parser.h> |
Daniel Veillard | 3648fcb | 2003-10-01 12:21:31 +0000 | [diff] [blame] | 18 | #include <libxml/parserInternals.h> |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 19 | |
Daniel Veillard | 877a7bd | 2003-09-13 00:16:32 +0000 | [diff] [blame] | 20 | #ifndef IN_LIBXML |
William M. Brack | 09428a3 | 2003-12-20 09:20:39 +0000 | [diff] [blame] | 21 | #ifdef __GNUC__ |
Daniel Veillard | 877a7bd | 2003-09-13 00:16:32 +0000 | [diff] [blame] | 22 | #warning "The DOCBparser module has been deprecated in libxml2-2.6.0" |
Daniel Veillard | 3648fcb | 2003-10-01 12:21:31 +0000 | [diff] [blame] | 23 | #endif |
William M. Brack | 09428a3 | 2003-12-20 09:20:39 +0000 | [diff] [blame] | 24 | #endif |
| 25 | |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 26 | #ifdef __cplusplus |
| 27 | extern "C" { |
| 28 | #endif |
| 29 | |
| 30 | /* |
Daniel Veillard | 61f2617 | 2002-03-12 18:46:39 +0000 | [diff] [blame] | 31 | * Most of the back-end structures from XML and SGML are shared. |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 32 | */ |
| 33 | typedef xmlParserCtxt docbParserCtxt; |
| 34 | typedef xmlParserCtxtPtr docbParserCtxtPtr; |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 35 | typedef xmlSAXHandler docbSAXHandler; |
| 36 | typedef xmlSAXHandlerPtr docbSAXHandlerPtr; |
| 37 | typedef xmlParserInput docbParserInput; |
| 38 | typedef xmlParserInputPtr docbParserInputPtr; |
| 39 | typedef xmlDocPtr docbDocPtr; |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 40 | |
| 41 | /* |
| 42 | * There is only few public functions. |
| 43 | */ |
Igor Zlatkovic | 76874e4 | 2003-08-25 09:05:12 +0000 | [diff] [blame] | 44 | XMLPUBFUN int XMLCALL |
| 45 | docbEncodeEntities(unsigned char *out, |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 46 | int *outlen, |
Daniel Veillard | 963d2ae | 2002-01-20 22:08:18 +0000 | [diff] [blame] | 47 | const unsigned char *in, |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 48 | int *inlen, int quoteChar); |
| 49 | |
Daniel Veillard | f8e3db0 | 2012-09-11 13:26:36 +0800 | [diff] [blame] | 50 | XMLPUBFUN docbDocPtr XMLCALL |
Igor Zlatkovic | 76874e4 | 2003-08-25 09:05:12 +0000 | [diff] [blame] | 51 | docbSAXParseDoc (xmlChar *cur, |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 52 | const char *encoding, |
| 53 | docbSAXHandlerPtr sax, |
| 54 | void *userData); |
Daniel Veillard | f8e3db0 | 2012-09-11 13:26:36 +0800 | [diff] [blame] | 55 | XMLPUBFUN docbDocPtr XMLCALL |
Igor Zlatkovic | 76874e4 | 2003-08-25 09:05:12 +0000 | [diff] [blame] | 56 | docbParseDoc (xmlChar *cur, |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 57 | const char *encoding); |
Daniel Veillard | f8e3db0 | 2012-09-11 13:26:36 +0800 | [diff] [blame] | 58 | XMLPUBFUN docbDocPtr XMLCALL |
Igor Zlatkovic | 76874e4 | 2003-08-25 09:05:12 +0000 | [diff] [blame] | 59 | docbSAXParseFile (const char *filename, |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 60 | const char *encoding, |
| 61 | docbSAXHandlerPtr sax, |
| 62 | void *userData); |
Daniel Veillard | f8e3db0 | 2012-09-11 13:26:36 +0800 | [diff] [blame] | 63 | XMLPUBFUN docbDocPtr XMLCALL |
Igor Zlatkovic | 76874e4 | 2003-08-25 09:05:12 +0000 | [diff] [blame] | 64 | docbParseFile (const char *filename, |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 65 | const char *encoding); |
| 66 | |
| 67 | /** |
Daniel Veillard | 61f2617 | 2002-03-12 18:46:39 +0000 | [diff] [blame] | 68 | * Interfaces for the Push mode. |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 69 | */ |
Daniel Veillard | f8e3db0 | 2012-09-11 13:26:36 +0800 | [diff] [blame] | 70 | XMLPUBFUN void XMLCALL |
Igor Zlatkovic | 76874e4 | 2003-08-25 09:05:12 +0000 | [diff] [blame] | 71 | docbFreeParserCtxt (docbParserCtxtPtr ctxt); |
Daniel Veillard | f8e3db0 | 2012-09-11 13:26:36 +0800 | [diff] [blame] | 72 | XMLPUBFUN docbParserCtxtPtr XMLCALL |
Igor Zlatkovic | 76874e4 | 2003-08-25 09:05:12 +0000 | [diff] [blame] | 73 | docbCreatePushParserCtxt(docbSAXHandlerPtr sax, |
| 74 | void *user_data, |
| 75 | const char *chunk, |
| 76 | int size, |
| 77 | const char *filename, |
| 78 | xmlCharEncoding enc); |
Daniel Veillard | f8e3db0 | 2012-09-11 13:26:36 +0800 | [diff] [blame] | 79 | XMLPUBFUN int XMLCALL |
Igor Zlatkovic | 76874e4 | 2003-08-25 09:05:12 +0000 | [diff] [blame] | 80 | docbParseChunk (docbParserCtxtPtr ctxt, |
| 81 | const char *chunk, |
| 82 | int size, |
| 83 | int terminate); |
Daniel Veillard | f8e3db0 | 2012-09-11 13:26:36 +0800 | [diff] [blame] | 84 | XMLPUBFUN docbParserCtxtPtr XMLCALL |
Igor Zlatkovic | 76874e4 | 2003-08-25 09:05:12 +0000 | [diff] [blame] | 85 | docbCreateFileParserCtxt(const char *filename, |
| 86 | const char *encoding); |
Daniel Veillard | f8e3db0 | 2012-09-11 13:26:36 +0800 | [diff] [blame] | 87 | XMLPUBFUN int XMLCALL |
Igor Zlatkovic | 76874e4 | 2003-08-25 09:05:12 +0000 | [diff] [blame] | 88 | docbParseDocument (docbParserCtxtPtr ctxt); |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 89 | |
| 90 | #ifdef __cplusplus |
| 91 | } |
| 92 | #endif |
Daniel Veillard | a235132 | 2004-06-27 12:08:10 +0000 | [diff] [blame] | 93 | |
| 94 | #endif /* LIBXML_DOCB_ENABLED */ |
| 95 | |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 96 | #endif /* __DOCB_PARSER_H__ */ |