Imported Upstream version 2.9.4
[platform/upstream/libxml2.git] / os400 / libxmlrpg / xmlmodule.rpgle
1       * Summary: dynamic module loading
2       * Description: basic API for dynamic module loading, used by
3       *              libexslt added in 2.6.17
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(XML_MODULE_H__)
10       /define XML_MODULE_H__
11
12       /include "libxmlrpg/xmlversion"
13
14       /if defined(LIBXML_MODULES_ENABLED)
15
16       /include "libxmlrpg/xmlTypesC"
17
18       * xmlModulePtr:
19       *
20       * A handle to a dynamically loaded module
21
22      d xmlModulePtr    s               *   based(######typedef######)
23
24       * xmlModuleOption:
25       *
26       * enumeration of options that can be passed down to xmlModuleOpen()
27
28      d xmlModuleOption...
29      d                 s                   based(######typedef######)
30      d                                     like(xmlCenum)
31      d  XML_MODULE_LAZY...                                                      Lazy binding
32      d                 c                   1
33      d  XML_MODULE_LOCAL...                                                     Local binding
34      d                 c                   2
35
36      d xmlModuleOpen   pr                  extproc('xmlModuleOpen')
37      d                                     like(xmlModulePtr)
38      d  filename                       *   value options(*string)               const char *
39      d  options                            value like(xmlCint)
40
41      d xmlModuleSymbol...
42      d                 pr                  extproc('xmlModuleSymbol')
43      d                                     like(xmlCint)
44      d  module                             value like(xmlModulePtr)
45      d  name                           *   value options(*string)               const char *
46      d  result                         *                                        void *(*)
47
48      d xmlModuleClose  pr                  extproc('xmlModuleClose')
49      d                                     like(xmlCint)
50      d  module                             value like(xmlModulePtr)
51
52      d xmlModuleFree   pr                  extproc('xmlModuleFree')
53      d                                     like(xmlCint)
54      d  module                             value like(xmlModulePtr)
55
56       /endif                                                                    LIBXML_MODULES_ENBLD
57       /endif                                                                    XML_MODULE_H__