Home | History | Annotate | Download | only in libxmlrpg
      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 (a] 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/xmlTypesC"
     17       /include "libxmlrpg/parser"
     18       /include "libxmlrpg/parserInternals"
     19 
     20       * Most of the back-end structures from XML and SGML are shared.
     21 
     22      d docbParserCtxtPtr...
     23      d                 s                   based(######typedef######)
     24      d                                     like(xmlParserCtxtPtr)
     25 
     26      d docbParserCtxt  ds                  based(docbParserCtxtPtr)
     27      d                                     likeds(xmlParserCtxt)
     28 
     29      d docbSAXHandlerPtr...
     30      d                 s                   based(######typedef######)
     31      d                                     like(xmlSAXHandlerPtr)
     32 
     33      d docbSAXHandler  ds                  based(docbSAXHandlerPtr)
     34      d                                     likeds(xmlSAXHandler)
     35 
     36      d docbParserInputPtr...
     37      d                 s                   based(######typedef######)
     38      d                                     like(xmlParserInputPtr)
     39 
     40      d docbParserInput...
     41      d                 ds                  based(docbParserInputPtr)
     42      d                                     likeds(xmlParserInput)
     43 
     44      d docbDocPtr      s                   based(######typedef######)
     45      d                                     like(xmlDocPtr)
     46 
     47       * There is only few public functions.
     48 
     49      d docbEncodeEntities...
     50      d                 pr                  extproc('docbEncodeEntities')
     51      d                                     like(xmlCint)
     52      d  out                            *   value options(*string)               unsigned char *
     53      d  outlen                         *   value                                int *
     54      d  in                             *   value options(*string)               const unsigned char
     55      d                                                                          *
     56      d  inlen                          *   value                                int *
     57      d  quoteChar                          value like(xmlCint)
     58 
     59      d docbSAXParseDoc...
     60      d                 pr                  extproc('docbSAXParseDoc')
     61      d                                     like(docbDocPtr)
     62      d  cur                            *   value options(*string)               xmlChar *
     63      d  encoding                       *   value options(*string)               const char *
     64      d  sax                                value like(docbSAXHandlerPtr)
     65      d  userData                       *   value                                void *
     66 
     67      d docbParseDoc    pr                  extproc('docbParseDoc')
     68      d                                     like(docbDocPtr)
     69      d  cur                            *   value options(*string)               xmlChar *
     70      d  encoding                       *   value options(*string)               const char *
     71 
     72      d docbSAXParseFile...
     73      d                 pr                  extproc('docbSAXParseFile')
     74      d                                     like(docbDocPtr)
     75      d  filename                       *   value options(*string)               const char *
     76      d  encoding                       *   value options(*string)               const char *
     77      d  sax                                value like(docbSAXHandlerPtr)
     78      d  userData                       *   value                                void *
     79 
     80      d docbParseFile   pr                  extproc('docbParseFile')
     81      d                                     like(docbDocPtr)
     82      d  filename                       *   value options(*string)               const char *
     83      d  encoding                       *   value options(*string)               const char *
     84 
     85       * Interfaces for the Push mode.
     86 
     87      d docbFreeParserCtxt...
     88      d                 pr                  extproc('docbFreeParserCtxt')
     89      d  ctxt                               value like(docbParserCtxtPtr)
     90 
     91      d docbCreatePushParserCtxt...
     92      d                 pr                  extproc('docbCreatePushParserCtxt')
     93      d                                     like(docbParserCtxtPtr)
     94      d  sax                                value like(docbSAXHandlerPtr)
     95      d  user_data                      *   value                                void *
     96      d  chunk                          *   value options(*string)               const char *
     97      d  size                               value like(xmlCint)
     98      d  filename                       *   value options(*string)               const char *
     99      d  enc                                value like(xmlCharEncoding)
    100 
    101      d docbParseChunk  pr                  extproc('docbParseChunk')
    102      d                                     like(xmlCint)
    103      d  ctxt                               value like(docbParserCtxtPtr)
    104      d  chunk                          *   value options(*string)               const char *
    105      d  size                               value like(xmlCint)
    106      d  terminate                          value like(xmlCint)
    107 
    108      d docbCreateFileParserCtxt...
    109      d                 pr                  extproc('docbCreateFileParserCtxt')
    110      d                                     like(docbParserCtxtPtr)
    111      d  filename                       *   value options(*string)               const char *
    112      d  encoding                       *   value options(*string)               const char *
    113 
    114      d docbParseDocument...
    115      d                 pr                  extproc('docbParseDocument')
    116      d                                     like(xmlCint)
    117      d  ctxt                               value like(docbParserCtxtPtr)
    118 
    119       /endif                                                                    LIBXML_DOCB_ENABLED
    120       /endif                                                                    DOCB_PARSER_H__
    121