1      * Summary: old DocBook SGML parser
2      * Description: interface for a DocBook SGML non-verifying parser
3      * This code is DEPRECATED, and should not be used anymore.
4      *
5      * Copy: See Copyright for the status of this software.
6      *
7      * Author: Patrick Monnerat <pm@datasphere.ch>, DATASPHERE S.A.
8
9      /if not defined(DOCB_PARSER_H__)
10      /define DOCB_PARSER_H__
11
12      /include "libxmlrpg/xmlversion"
13
14      /if defined(LIBXML_DOCB_ENABLED)
15
16      /include "libxmlrpg/parser"
17      /include "libxmlrpg/parserInternals"
18
19      * Most of the back-end structures from XML and SGML are shared.
20
21     d docbParserCtxtPtr...
22     d                 s                   based(######typedef######)
23     d                                     like(xmlParserCtxtPtr)
24
25     d docbParserCtxt  ds                  based(docbParserCtxtPtr)
26     d                                     likeds(xmlParserCtxt)
27
28     d docbSAXHandlerPtr...
29     d                 s                   based(######typedef######)
30     d                                     like(xmlSAXHandlerPtr)
31
32     d docbSAXHandler  ds                  based(docbSAXHandlerPtr)
33     d                                     likeds(xmlSAXHandler)
34
35     d docbParserInputPtr...
36     d                 s                   based(######typedef######)
37     d                                     like(xmlParserInputPtr)
38
39     d docbParserInput...
40     d                 ds                  based(docbParserInputPtr)
41     d                                     likeds(xmlParserInput)
42
43     d docbDocPtr      s                   based(######typedef######)
44     d                                     like(xmlDocPtr)
45
46      * There is only few public functions.
47
48     d docbEncodeEntities...
49     d                 pr            10i 0 extproc('docbEncodeEntities')
50     d  out                            *   value options(*string)               unsigned char *
51     d  outlen                         *   value                                int *
52     d  in                             *   value options(*string)               const unsigned char
53     d                                                                          *
54     d  inlen                          *   value                                int *
55     d  quoteChar                    10i 0 value
56
57     d docbSAXParseDoc...
58     d                 pr                  extproc('docbSAXParseDoc')
59     d                                     like(docbDocPtr)
60     d  cur                            *   value options(*string)               xmlChar *
61     d  encoding                       *   value options(*string)               const char *
62     d  sax                                value like(docbSAXHandlerPtr)
63     d  userData                       *   value                                void *
64
65     d docbParseDoc    pr                  extproc('docbParseDoc')
66     d                                     like(docbDocPtr)
67     d  cur                            *   value options(*string)               xmlChar *
68     d  encoding                       *   value options(*string)               const char *
69
70     d docbSAXParseFile...
71     d                 pr                  extproc('docbSAXParseFile')
72     d                                     like(docbDocPtr)
73     d  filename                       *   value options(*string)               const char *
74     d  encoding                       *   value options(*string)               const char *
75     d  sax                                value like(docbSAXHandlerPtr)
76     d  userData                       *   value                                void *
77
78     d docbParseFile   pr                  extproc('docbParseFile')
79     d                                     like(docbDocPtr)
80     d  filename                       *   value options(*string)               const char *
81     d  encoding                       *   value options(*string)               const char *
82
83      * Interfaces for the Push mode.
84
85     d docbFreeParserCtxt...
86     d                 pr                  extproc('docbFreeParserCtxt')
87     d  ctxt                               value like(docbParserCtxtPtr)
88
89     d docbCreatePushParserCtxt...
90     d                 pr                  extproc('docbCreatePushParserCtxt')
91     d                                     like(docbParserCtxtPtr)
92     d  sax                                value like(docbSAXHandlerPtr)
93     d  user_data                      *   value                                void *
94     d  chunk                          *   value options(*string)               const char *
95     d  size                         10i 0 value
96     d  filename                       *   value options(*string)               const char *
97     d  enc                                value like(xmlCharEncoding)
98
99     d docbParseChunk  pr            10i 0 extproc('docbParseChunk')
100     d  ctxt                               value like(docbParserCtxtPtr)
101     d  chunk                          *   value options(*string)               const char *
102     d  size                         10i 0 value
103     d  terminate                    10i 0 value
104
105     d docbCreateFileParserCtxt...
106     d                 pr                  extproc('docbCreateFileParserCtxt')
107     d                                     like(docbParserCtxtPtr)
108     d  filename                       *   value options(*string)               const char *
109     d  encoding                       *   value options(*string)               const char *
110
111     d docbParseDocument...
112     d                 pr            10i 0 extproc('docbParseDocument')
113     d  ctxt                               value like(docbParserCtxtPtr)
114
115      /endif                                                                    LIBXML_DOCB_ENABLED
116      /endif                                                                    DOCB_PARSER_H__
117