aboutsummaryrefslogtreecommitdiff
path: root/libxml2-2.9.10/os400/libxmlrpg/catalog.rpgle
blob: 1dab819ddebbe9a8e50ee53884cebf5ddf2dbc1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
      * Summary: interfaces to the Catalog handling system
      * Description: the catalog module implements the support for
      * XML Catalogs and SGML catalogs
      *
      * SGML Open Technical Resolution TR9401:1997.
      * http://www.jclark.com/sp/catalog.htm
      *
      * XML Catalogs Working Draft 06 August 2001
      * http://www.oasis-open.org/committees/entity/spec-2001-08-06.html
      *
      * Copy: See Copyright for the status of this software.
      *
      * Author: Patrick Monnerat <pm@datasphere.ch>, DATASPHERE S.A.

      /if not defined(XML_CATALOG_H__)
      /define XML_CATALOG_H__

      /include "libxmlrpg/xmlversion"

      /if defined(LIBXML_CATALOG_ENABLED)

      /include "libxmlrpg/xmlTypesC"
      /include "libxmlrpg/xmlstring"
      /include "libxmlrpg/tree"

      * XML_CATALOGS_NAMESPACE:
      *
      * The namespace for the XML Catalogs elements.

     d XML_CATALOGS_NAMESPACE...
     d                 c                   'urn:oasis:names:+
     d                                      tc:entity:xmlns:xml:catalog'

      * XML_CATALOG_PI:
      *
      * The specific XML Catalog Processing Instuction name.

     d XML_CATALOG_PI  c                   'oasis-xml-catalog'

      * The API is voluntarily limited to general cataloging.

     d xmlCatalogPrefer...
     d                 s                   based(######typedef######)
     d                                     like(xmlCenum)
     d XML_CATA_PREFER_NONE...
     d                 c                   0
     d XML_CATA_PREFER_PUBLIC...
     d                 c                   1
     d XML_CATA_PREFER_SYSTEM...
     d                 c                   2

     d xmlCatalogAllow...
     d                 s                   based(######typedef######)
     d                                     like(xmlCenum)
     d XML_CATA_ALLOW_NONE...
     d                 c                   0
     d XML_CATA_ALLOW_GLOBAL...
     d                 c                   1
     d XML_CATA_ALLOW_DOCUMENT...
     d                 c                   2
     d XML_CATA_ALLOW_ALL...
     d                 c                   3

     d xmlCatalogPtr   s               *   based(######typedef######)

      * Operations on a given catalog.

     d xmlNewCatalog   pr                  extproc('xmlNewCatalog')
     d                                     like(xmlCatalogPtr)
     d  sgml                               value like(xmlCint)

     d xmlLoadACatalog...
     d                 pr                  extproc('xmlLoadACatalog')
     d                                     like(xmlCatalogPtr)
     d  filename                       *   value options(*string)               const char *

     d xmlLoadSGMLSuperCatalog...
     d                 pr                  extproc('xmlLoadSGMLSuperCatalog')
     d                                     like(xmlCatalogPtr)
     d  filename                       *   value options(*string)               const char *

     d xmlConvertSGMLCatalog...
     d                 pr                  extproc('xmlConvertSGMLCatalog')
     d                                     like(xmlCint)
     d  catal                              value like(xmlCatalogPtr)

     d xmlACatalogAdd  pr                  extproc('xmlACatalogAdd')
     d                                     like(xmlCint)
     d  catal                              value like(xmlCatalogPtr)
     d  type                           *   value options(*string)               const xmlChar *
     d  orig                           *   value options(*string)               const xmlChar *
     d  replace                        *   value options(*string)               const xmlChar *

     d xmlACatalogRemove...
     d                 pr                  extproc('xmlACatalogRemove')
     d                                     like(xmlCint)
     d  catal                              value like(xmlCatalogPtr)
     d  value                          *   value options(*string)               const xmlChar *

     d xmlACatalogResolve...
     d                 pr              *   extproc('xmlACatalogResolve')        xmlChar *
     d  catal                              value like(xmlCatalogPtr)
     d  pubID                          *   value options(*string)               const xmlChar *
     d  sysID                          *   value options(*string)               const xmlChar *

     d xmlACatalogResolveSystem...
     d                 pr              *   extproc('xmlACatalogResolveSystem')  xmlChar *
     d  catal                              value like(xmlCatalogPtr)
     d  sysID                          *   value options(*string)               const xmlChar *

     d xmlACatalogResolvePublic...
     d                 pr              *   extproc('xmlACatalogResolvePublic')  xmlChar *
     d  catal                              value like(xmlCatalogPtr)
     d  pubID                          *   value options(*string)               const xmlChar *

     d xmlACatalogResolveURI...
     d                 pr              *   extproc('xmlACatalogResolveURI')     xmlChar *
     d  catal                              value like(xmlCatalogPtr)
     d  URI                            *   value options(*string)               const xmlChar *

      /if defined(LIBXML_OUTPUT_ENABLED)
     d xmlACatalogDump...
     d                 pr                  extproc('xmlACatalogDump')
     d  catal                              value like(xmlCatalogPtr)
     d  out                            *   value                                FILE *
      /endif                                                                    LIBXML_OUTPUT_ENABLD

     d xmlFreeCatalog  pr                  extproc('xmlFreeCatalog')
     d  catal                              value like(xmlCatalogPtr)

     d xmlCatalogIsEmpty...
     d                 pr                  extproc('xmlCatalogIsEmpty')
     d                                     like(xmlCint)
     d  catal                              value like(xmlCatalogPtr)

      * Global operations.

     d xmlInitializeCatalog...
     d                 pr                  extproc('xmlInitializeCatalog')

     d xmlLoadCatalog  pr                  extproc('xmlLoadCatalog')
     d                                     like(xmlCint)
     d  filename                       *   value options(*string)               const char *

     d xmlLoadCatalogs...
     d                 pr                  extproc('xmlLoadCatalogs')
     d  paths                          *   value options(*string)               const char *

     d xmlCatalogCleanup...
     d                 pr                  extproc('xmlCatalogCleanup')

      /if defined(LIBXML_OUTPUT_ENABLED)
     d xmlCatalogDump  pr                  extproc('xmlCatalogDump')
     d  out                            *   value                                FILE *
      /endif                                                                    LIBXML_OUTPUT_ENABLD

     d xmlCatalogResolve...
     d                 pr              *   extproc('xmlCatalogResolve')         xmlChar *
     d  pubID                          *   value options(*string)               const xmlChar *
     d  sysID                          *   value options(*string)               const xmlChar *

     d xmlCatalogResolveSystem...
     d                 pr              *   extproc('xmlCatalogResolveSystem')   xmlChar *
     d  sysID                          *   value options(*string)               const xmlChar *

     d xmlCatalogResolvePublic...
     d                 pr              *   extproc('xmlCatalogResolvePublic')   xmlChar *
     d  pubID                          *   value options(*string)               const xmlChar *

     d xmlCatalogResolveURI...
     d                 pr              *   extproc('xmlCatalogResolveURI')      xmlChar *
     d  URI                            *   value options(*string)               const xmlChar *

     d xmlCatalogAdd   pr                  extproc('xmlCatalogAdd')
     d                                     like(xmlCint)
     d  type                           *   value options(*string)               const xmlChar *
     d  orig                           *   value options(*string)               const xmlChar *
     d  replace                        *   value options(*string)               const xmlChar *

     d xmlCatalogRemove...
     d                 pr                  extproc('xmlCatalogRemove')
     d                                     like(xmlCint)
     d  value                          *   value options(*string)               const xmlChar *

     d xmlParseCatalogFile...
     d                 pr                  extproc('xmlParseCatalogFile')
     d                                     like(xmlDocPtr)
     d  filename                       *   value options(*string)               const char *

     d xmlCatalogConvert...
     d                 pr                  extproc('xmlCatalogConvert')
     d                                     like(xmlCint)

      * Strictly minimal interfaces for per-document catalogs used
      * by the parser.

     d xmlCatalogFreeLocal...
     d                 pr                  extproc('xmlCatalogFreeLocal')
     d  catalogs                       *   value                                void *

     d xmlCatalogAddLocal...
     d                 pr              *   extproc('xmlCatalogAddLocal')        void *
     d  catalogs                       *   value                                void *
     d  URL                            *   value options(*string)               const xmlChar *

     d xmlCatalogLocalResolve...
     d                 pr              *   extproc('xmlCatalogLocalResolve')    xmlChar *
     d  catalogs                       *   value                                void *
     d  pubID                          *   value options(*string)               const xmlChar *
     d  sysID                          *   value options(*string)               const xmlChar *

     d xmlCatalogLocalResolveURI...
     d                 pr              *   extproc('xmlCatalogLocalResolveURI') xmlChar *
     d  catalogs                       *   value                                void *
     d  URI                            *   value options(*string)               const xmlChar *

      * Preference settings.

     d xmlCatalogSetDebug...
     d                 pr                  extproc('xmlCatalogSetDebug')
     d                                     like(xmlCint)
     d  level                              value like(xmlCint)

     d xmlCatalogSetDefaultPrefer...
     d                 pr                  extproc('xmlCatalogSetDefaultPrefer')
     d                                     like(xmlCatalogPrefer)
     d  prefer                             value like(xmlCatalogPrefer)

     d xmlCatalogSetDefaults...
     d                 pr                  extproc('xmlCatalogSetDefaults')
     d  allow                              value like(xmlCatalogAllow)

     d xmlCatalogGetDefaults...
     d                 pr                  extproc('xmlCatalogGetDefaults')
     d                                     like(xmlCatalogAllow)

      * DEPRECATED interfaces

     d xmlCatalogGetSystem...
     d                 pr              *   extproc('xmlCatalogGetSystem')       const xmlChar *
     d  sysID                          *   value options(*string)               const xmlChar *

     d xmlCatalogGetPublic...
     d                 pr              *   extproc('xmlCatalogGetPublic')       const xmlChar *
     d  pubID                          *   value options(*string)               const xmlChar *

      /endif                                                                    LIBXML_CATALOG_ENBLD
      /endif                                                                    XML_CATALOG_H__