You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
3.1 KiB

4 years ago
  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. #ifndef __DOCB_PARSER_H__
  11. #define __DOCB_PARSER_H__
  12. #include <libxml/xmlversion.h>
  13. #ifdef LIBXML_DOCB_ENABLED
  14. #include <libxml/parser.h>
  15. #include <libxml/parserInternals.h>
  16. #ifndef IN_LIBXML
  17. #ifdef __GNUC__
  18. #warning "The DOCBparser module has been deprecated in libxml2-2.6.0"
  19. #endif
  20. #endif
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. /*
  25. * Most of the back-end structures from XML and SGML are shared.
  26. */
  27. typedef xmlParserCtxt docbParserCtxt;
  28. typedef xmlParserCtxtPtr docbParserCtxtPtr;
  29. typedef xmlSAXHandler docbSAXHandler;
  30. typedef xmlSAXHandlerPtr docbSAXHandlerPtr;
  31. typedef xmlParserInput docbParserInput;
  32. typedef xmlParserInputPtr docbParserInputPtr;
  33. typedef xmlDocPtr docbDocPtr;
  34. /*
  35. * There is only few public functions.
  36. */
  37. XMLPUBFUN int XMLCALL
  38. docbEncodeEntities(unsigned char *out,
  39. int *outlen,
  40. const unsigned char *in,
  41. int *inlen, int quoteChar);
  42. XMLPUBFUN docbDocPtr XMLCALL
  43. docbSAXParseDoc (xmlChar *cur,
  44. const char *encoding,
  45. docbSAXHandlerPtr sax,
  46. void *userData);
  47. XMLPUBFUN docbDocPtr XMLCALL
  48. docbParseDoc (xmlChar *cur,
  49. const char *encoding);
  50. XMLPUBFUN docbDocPtr XMLCALL
  51. docbSAXParseFile (const char *filename,
  52. const char *encoding,
  53. docbSAXHandlerPtr sax,
  54. void *userData);
  55. XMLPUBFUN docbDocPtr XMLCALL
  56. docbParseFile (const char *filename,
  57. const char *encoding);
  58. /**
  59. * Interfaces for the Push mode.
  60. */
  61. XMLPUBFUN void XMLCALL
  62. docbFreeParserCtxt (docbParserCtxtPtr ctxt);
  63. XMLPUBFUN docbParserCtxtPtr XMLCALL
  64. docbCreatePushParserCtxt(docbSAXHandlerPtr sax,
  65. void *user_data,
  66. const char *chunk,
  67. int size,
  68. const char *filename,
  69. xmlCharEncoding enc);
  70. XMLPUBFUN int XMLCALL
  71. docbParseChunk (docbParserCtxtPtr ctxt,
  72. const char *chunk,
  73. int size,
  74. int terminate);
  75. XMLPUBFUN docbParserCtxtPtr XMLCALL
  76. docbCreateFileParserCtxt(const char *filename,
  77. const char *encoding);
  78. XMLPUBFUN int XMLCALL
  79. docbParseDocument (docbParserCtxtPtr ctxt);
  80. #ifdef __cplusplus
  81. }
  82. #endif
  83. #endif /* LIBXML_DOCB_ENABLED */
  84. #endif /* __DOCB_PARSER_H__ */