1      * Summary: interface for all global variables of the library
2      * Description: all the global variables and thread handling for
3      *              those variables is handled by this module.
4      *
5      * The bottom of this file is automatically generated by build_glob.py
6      * based on the description file global.data
7      *
8      * Copy: See Copyright for the status of this software.
9      *
10      * Author: Patrick Monnerat <pm@datasphere.ch>, DATASPHERE S.A.
11
12      /if not defined(XML_GLOBALS_H)
13      /define XML_GLOBALS_H
14
15      /include "libxmlrpg/xmlversion"
16      /include "libxmlrpg/parser"
17      /include "libxmlrpg/xmlerror"
18      /include "libxmlrpg/SAX"
19      /include "libxmlrpg/SAX2"
20      /include "libxmlrpg/xmlmemory"
21
22     d xmlInitGlobals  pr                  extproc('xmlInitGlobals')
23
24     d xmlCleanupGlobals...
25     d                 pr                  extproc('xmlCleanupGlobals')
26
27      * xmlParserInputBufferCreateFilenameFunc:
28      * @URI: the URI to read from
29      * @enc: the requested source encoding
30      *
31      * Signature for the function doing the lookup for a suitable input method
32      * corresponding to an URI.
33      *
34      * Returns the new xmlParserInputBufferPtr in case of success or NULL if no
35      *         method was found.
36
37     d xmlParserInputBufferCreateFilenameFunc...
38     d                 s               *   based(######typedef######)
39     d                                     procptr
40
41      * xmlOutputBufferCreateFilenameFunc:
42      * @URI: the URI to write to
43      * @enc: the requested target encoding
44      *
45      * Signature for the function doing the lookup for a suitable output method
46      * corresponding to an URI.
47      *
48      * Returns the new xmlOutputBufferPtr in case of success or NULL if no
49      *         method was found.
50
51     d xmlOutputBufferCreateFilenameFunc...
52     d                 s               *   based(######typedef######)
53     d                                     procptr
54
55     d xmlParserInputBufferCreateFilenameDefault...
56     d                 pr                  extproc('xmlParserInputBufferCreate+
57     d                                     FilenameDefault')
58     d                                     like(xmlParserInputBuffer...
59     d                                     CreateFilenameFunc)
60     d func                                value like(xmlParserInputBuffer...
61     d                                     CreateFilenameFunc)
62
63     d xmlOutputBufferCreateFilenameDefault...
64     d                 pr                  extproc('xmlOutputBufferCreate+
65     d                                     FilenameDefault')
66     d                                     like(xmlOutputBuffer...
67     d                                     CreateFilenameFunc)
68     d func                                value like(xmlOutputBuffer...
69     d                                     CreateFilenameFunc)
70
71      * xmlRegisterNodeFunc:
72      * @node: the current node
73      *
74      * Signature for the registration callback of a created node
75
76     d xmlRegisterNodeFunc...
77     d                 s               *   based(######typedef######)
78     d                                     procptr
79
80      * xmlDeregisterNodeFunc:
81      * @node: the current node
82      *
83      * Signature for the deregistration callback of a discarded node
84
85     d xmlDeregisterNodeFunc...
86     d                 s               *   based(######typedef######)
87     d                                     procptr
88
89     d xmlGlobalStatePtr...
90     d                 s               *   based(######typedef######)
91
92     d xmlGlobalState  ds                  based(xmlGlobalStatePtr)
93     d                                     align qualified
94     d  xmlParserVersion...
95     d                                 *                                        const char *
96     d  xmlDefaultSAXLocator...
97     d                                     likeds(xmlSAXLocator)
98     d  xmlDefaultSAXHandler...
99     d                                     likeds(xmlSAXHandlerV1)
100     d  docbDefaultSAXHandler...
101     d                                     likeds(xmlSAXHandlerV1)
102     d  htmlDefaultSAXHandler...
103     d                                     likeds(xmlSAXHandlerV1)
104     d  xmlFree                            like(xmlFreeFunc)
105     d  xmlMalloc                          like(xmlMallocFunc)
106     d  xmlMemStrdup                       like(xmlStrdupFunc)
107     d  xmlRealloc                         like(xmlReallocFunc)
108     d  xmlGenericError...
109     d                                     like(xmlGenericErrorFunc)
110     d  xmlStructuredError...
111     d                                     like(xmlStructuredErrorFunc)
112     d  xmlGenericErrorContext...
113     d                                 *                                        void *
114     d  oldXMLWDcompatibility...
115     d                               10i 0
116     d  xmlBufferAllocScheme...
117     d                                     like(xmlBufferAllocationScheme)
118     d  xmlDefaultBufferSize...
119     d                               10i 0
120     d  xmlSubstituteEntitiesDefaultValue...
121     d                               10i 0
122     d  xmlDoValidityCheckingDefaultValue...
123     d                               10i 0
124     d  xmlGetWarningsDefaultValue...
125     d                               10i 0
126     d  xmlKeepBlanksDefaultValue...
127     d                               10i 0
128     d  xmlLineNumbersDefaultValue...
129     d                               10i 0
130     d  xmlLoadExtDtdDefaultValue...
131     d                               10i 0
132     d  xmlParserDebugEntities...
133     d                               10i 0
134     d  xmlPedanticParserDefaultValue...
135     d                               10i 0
136     d  xmlSaveNoEmptyTags...
137     d                               10i 0
138     d  xmlIndentTreeOutput...
139     d                               10i 0
140     d  xmlTreeIndentString...
141     d                                 *                                        const char *
142     d  xmlRegisterNodeDefaultValue...
143     d                                     like(xmlRegisterNodeFunc)
144     d  xmlDeregisterNodeDefaultValue...
145     d                                     like(xmlDeregisterNodeFunc)
146     d  xmlMallocAtomic...
147     d                                     like(xmlMallocFunc)
148     d  xmlLastError                       likeds(xmlError)
149     d  xmlParserInputBufferCreateFilenameValue...
150     d                                     like(xmlParserInputBuffer...
151     d                                     CreateFilenameFunc)
152     d  xmlOutputBufferCreateFilenameValue...
153     d                                     like(xmlOutputBuffer...
154     d                                     CreateFilenameFunc)
155     d  xmlStructuredErrorContext...
156     d                                 *                                        void *
157
158      /include "libxmlrpg/threads"
159
160     d xmlInitializeGlobalState...
161     d                 pr                  extproc('xmlInitializeGlobalState')
162     d qs                                  value like(xmlGlobalStatePtr)
163
164     d xmlThrDefSetGenericErrorFunc...
165     d                 pr                  extproc(
166     d                                      'xmlThrDefSetGenericErrorFunc')
167     d ctx                             *   value                                void *
168     d handler                             value like(xmlGenericErrorFunc)
169
170     d xmlThrDefSetStructuredErrorFunc...
171     d                 pr                  extproc(
172     d                                      'xmlThrDefSetStructuredErrorFunc')
173     d ctx                             *   value                                void *
174     d handler                             value like(xmlStructuredErrorFunc)
175
176     d xmlRegisterNodeDefault...
177     d                 pr                  extproc('xmlRegisterNodeDefault')
178     d                                     like(xmlRegisterNodeFunc)
179     d func                                value like(xmlRegisterNodeFunc)
180
181     d xmlThrDefRegisterNodeDefault...
182     d                 pr                  extproc(
183     d                                      'xmlThrDefRegisterNodeDefault')
184     d                                     like(xmlRegisterNodeFunc)
185     d func                                value like(xmlRegisterNodeFunc)
186
187     d xmlDeregisterNodeDefault...
188     d                 pr                  extproc('xmlDeregisterNodeDefault')
189     d                                     like(xmlDeregisterNodeFunc)
190     d func                                value like(xmlDeregisterNodeFunc)
191
192     d xmlThrDefDeregisterNodeDefault...
193     d                 pr                  extproc(
194     d                                      'xmlThrDefDeregisterNodeDefault')
195     d                                     like(xmlDeregisterNodeFunc)
196     d func                                value like(xmlDeregisterNodeFunc)
197
198     d xmlThrDefOutputBufferCreateFilenameDefault...
199     d                 pr                  extproc('xmlThrDefOutputBuffer+
200     d                                     CreateFilenameDefault')
201     d                                     like(xmlOutputBuffer...
202     d                                     CreateFilenameFunc)
203     d func                                value like(xmlOutputBuffer...
204     d                                     CreateFilenameFunc)
205
206     d xmlThrDefParserInputBufferCreateFilenameDefault...
207     d                 pr                  extproc('xmlThrDefParserInputBuffer+
208     d                                     CreateFilenameDefault')
209     d                                     like(xmlParserInputBuffer...
210     d                                     CreateFilenameFunc)
211     d func                                value like(xmlParserInputBuffer...
212     d                                     CreateFilenameFunc)
213
214      /if defined(LIBXML_DOCB_ENABLED)
215     d get_docbDefaultSAXHandler...
216     d                 pr                  extproc(
217     d                                       '__get_docbDefaultSAXHandler')
218     d                                     likeds(xmlSAXHandlerV1)
219
220     d set_docbDefaultSAXHandler...
221     d                 pr                  extproc(
222     d                                       '__set_docbDefaultSAXHandler')
223     d  value                              value likeds(xmlSAXHandlerV1)
224      /endif
225
226      /if defined(LIBXML_HTML_ENABLED)
227     d get_htmlDefaultSAXHandler...
228     d                 pr                  extproc(
229     d                                       '__get_htmlDefaultSAXHandler')
230     d                                     likeds(xmlSAXHandlerV1)
231
232     d set_htmlDefaultSAXHandler...
233     d                 pr                  extproc(
234     d                                       '__set_htmlDefaultSAXHandler')
235     d  value                              value likeds(xmlSAXHandlerV1)
236      /endif
237
238     d get_xmlLastError...
239     d                 pr                  extproc('__get_xmlLastError')
240     d                                     likeds(xmlError)
241
242     d set_xmlLastError...
243     d                 pr                  extproc('__set_xmlLastError')
244     d  value                              value likeds(xmlError)
245
246     d get_oldXMLWDcompatibility...
247     d                 pr            10i 0 extproc(
248     d                                       '__get_oldXMLWDcompatibility')
249
250     d set_oldXMLWDcompatibility...
251     d                 pr                  extproc(
252     d                                       '__set_oldXMLWDcompatibility')
253     d  value                        10i 0 value
254
255     d get_xmlBufferAllocScheme...
256     d                 pr                  extproc('__get_xmlBufferAllocScheme')
257     d                                     like(xmlBufferAllocationScheme)
258
259     d set_xmlBufferAllocScheme...
260     d                 pr                  extproc('__set_xmlBufferAllocScheme')
261     d  value                              value like(xmlBufferAllocationScheme)
262
263     d xmlThrDefBufferAllocScheme...
264     d                 pr                  extproc('xmlThrDefBufferAllocScheme')
265     d                                     like(xmlBufferAllocationScheme)
266     d  v                                  value like(xmlBufferAllocationScheme)
267
268     d get_xmlDefaultBufferSize...
269     d                 pr            10i 0 extproc('__get_xmlDefaultBufferSize')
270
271     d set_xmlDefaultBufferSize...
272     d                 pr                  extproc('__set_xmlDefaultBufferSize')
273     d  value                        10i 0 value
274
275     d xmlThrDefDefaultBufferSize...
276     d                 pr            10i 0 extproc('xmlThrDefDefaultBufferSize')
277     d  v                            10i 0 value
278
279     d get_xmlDefaultSAXHandler...
280     d                 pr                  extproc('__get_xmlDefaultSAXHandler')
281     d                                     likeds(xmlSAXHandlerV1)
282
283     d set_xmlDefaultSAXHandler...
284     d                 pr                  extproc('__set_xmlDefaultSAXHandler')
285     d  value                              value likeds(xmlSAXHandlerV1)
286
287     d get_xmlDefaultSAXLocator...
288     d                 pr                  extproc('__get_xmlDefaultSAXLocator')
289     d                                     likeds(xmlSAXLocator)
290
291     d set_xmlDefaultSAXLocator...
292     d                 pr                  extproc('__set_xmlDefaultSAXLocator')
293     d  value                              value likeds(xmlSAXLocator)
294
295     d get_xmlDoValidityCheckingDefaultValue...
296     d                 pr            10i 0 extproc('__get_xmlDoValidity+
297     d                                       CheckingDefaultValue')
298
299     d set_xmlDoValidityCheckingDefaultValue...
300     d                 pr                  extproc('__set_xmlDoValidity+
301     d                                       CheckingDefaultValue')
302     d  value                        10i 0 value
303
304     d xmlThrDefDoValidityCheckingDefaultValue...
305     d                 pr            10i 0 extproc('xmlThrDefDoValidity+
306     d                                       CheckingDefaultValue')
307     d  v                            10i 0 value
308
309     d get_xmlGenericError...
310     d                 pr                  extproc('__get_xmlGenericError')
311     d                                     like(xmlGenericErrorFunc)
312
313     d set_xmlGenericError...
314     d                 pr                  extproc('__set_xmlGenericError')
315     d  func                               value like(xmlGenericErrorFunc)
316
317     d get_xmlStructuredError...
318     d                 pr                  extproc('__get_xmlStructuredError')
319     d                                     like(xmlStructuredErrorFunc)
320
321     d set_xmlStructuredError...
322     d                 pr                  extproc('__set_xmlStructuredError')
323     d  func                               value like(xmlStructuredErrorFunc)
324
325     d xmlStructuredError...
326     d                 pr                  extproc('__call_xmlStructuredError')
327     d  userData                       *   value options(*string)               void *
328     d  error                              value like(xmlErrorPtr)
329
330     d get_xmlGenericErrorContext...
331     d                 pr                  extproc(
332     d                                       '__get_xmlGenericErrorContext')
333     d                                 *                                        void *
334
335     d set_xmlGenericErrorContext...
336     d                 pr                  extproc(
337     d                                       '__set_xmlGenericErrorContext')
338     d  value                          *   value options(*string)               void *
339
340     d get_xmlStructuredErrorContext...
341     d                 pr                  extproc(
342     d                                       '__get_xmlStructuredErrorContext')
343     d                                 *                                        void *
344
345     d set_xmlStructuredErrorContext...
346     d                 pr                  extproc(
347     d                                       '__set_xmlStructuredErrorContext')
348     d  value                          *   value options(*string)               void *
349
350     d get_xmlGetWarningsDefaultValue...
351     d                 pr            10i 0 extproc(
352     d                                       '__get_xmlGetWarningsDefaultValue')
353
354     d set_xmlGetWarningsDefaultValue...
355     d                 pr                  extproc(
356     d                                       '__set_xmlGetWarningsDefaultValue')
357     d  value                        10i 0 value
358
359     d xmlThrDefGetWarningsDefaultValue...
360     d                 pr            10i 0 extproc(
361     d                                       'xmlThrDefGetWarningsDefaultValue')
362     d  v                            10i 0 value
363
364     d get_xmlIndentTreeOutput...
365     d                 pr            10i 0 extproc('__get_xmlIndentTreeOutput')
366
367     d set_xmlIndentTreeOutput...
368     d                 pr                   extproc('__set_xmlIndentTreeOutput')
369     d  value                        10i 0 value
370
371     d xmlThrDefIndentTreeOutput...
372     d                 pr            10i 0 extproc('xmlThrDefIndentTreeOutput')
373     d  v                            10i 0 value
374
375     d get_xmlTreeIndentString...
376     d                 pr              *   extproc('__get_xmlTreeIndentString') const char *
377
378     d set_xmlTreeIndentString...
379     d                 pr                  extproc('__set_xmlTreeIndentString')
380     d  value                          *   value options(*string)               const char *
381
382     d xmlThrDefTreeIndentString...
383     d                 pr              *   extproc('xmlThrDefTreeIndentString') const char *
384     d  v                              *   value options(*string)               const char *
385
386     d get_xmlKeepBlanksDefaultValue...
387     d                 pr            10i 0 extproc(
388     d                                       '__get_xmlKeepBlanksDefaultValue')
389
390     d set_xmlKeepBlanksDefaultValue...
391     d                 pr                  extproc(
392     d                                       '__set_xmlKeepBlanksDefaultValue')
393     d  value                        10i 0 value
394
395     d xmlThrDefKeepBlanksDefaultValue...
396     d                 pr            10i 0 extproc(
397     d                                       'xmlThrDefKeepBlanksDefaultValue')
398     d  v                            10i 0 value
399
400     d get_xmlLineNumbersDefaultValue...
401     d                 pr            10i 0 extproc(
402     d                                       '__get_xmlLineNumbersDefaultValue')
403
404     d set_xmlLineNumbersDefaultValue...
405     d                 pr                  extproc(
406     d                                       '__set_xmlLineNumbersDefaultValue')
407     d  value                        10i 0 value
408
409     d xmlThrDefLineNumbersDefaultValue...
410     d                 pr            10i 0 extproc(
411     d                                       'xmlThrDefLineNumbersDefaultValue')
412     d  v                            10i 0 value
413
414     d get_xmlLoadExtDtdDefaultValue...
415     d                 pr            10i 0 extproc(
416     d                                       '__get_xmlLoadExtDtdDefaultValue')
417
418     d set_xmlLoadExtDtdDefaultValue...
419     d                 pr                  extproc(
420     d                                       '__set_xmlLoadExtDtdDefaultValue')
421     d  value                        10i 0 value
422
423     d xmlThrDefLoadExtDtdDefaultValue...
424     d                 pr            10i 0 extproc(
425     d                                       'xmlThrDefLoadExtDtdDefaultValue')
426     d  v                            10i 0 value
427
428     d get_xmlParserDebugEntities...
429     d                 pr            10i 0 extproc(
430     d                                       '__get_xmlParserDebugEntities')
431
432     d set_xmlParserDebugEntities...
433     d                 pr                  extproc(
434     d                                       '__set_xmlParserDebugEntities')
435     d  value                        10i 0 value
436
437     d xmlThrDefParserDebugEntities...
438     d                 pr            10i 0 extproc(
439     d                                       'xmlThrDefParserDebugEntities')
440     d  v                            10i 0 value
441
442     d get_xmlParserVersion...
443     d                 pr              *   extproc('__get_xmlParserVersion')    const char *
444
445     d set_xmlParserVersion...
446     d                 pr                  extproc('__set_xmlParserVersion')
447     d  value                          *   value options(*string)               const char *
448
449     d get_xmlPedanticParserDefaultValue...
450     d                 pr            10i 0 extproc('__get_xmlPedantic+
451     d                                       ParserDefaultValue')
452
453     d set_xmlPedanticParserDefaultValue...
454     d                 pr                  extproc('__set_xmlPedantic+
455     d                                       ParserDefaultValue')
456     d  value                        10i 0 value
457
458     d xmlThrDefPedanticParserDefaultValue...
459     d                 pr            10i 0 extproc('xmlThrDefPedantic+
460     d                                       ParserDefaultValue')
461     d  v                            10i 0 value
462
463     d get_xmlSaveNoEmptyTags...
464     d                 pr            10i 0 extproc('__get_xmlSaveNoEmptyTags')
465
466     d set_xmlSaveNoEmptyTags...
467     d                 pr                  extproc('__set_xmlSaveNoEmptyTags')
468     d  value                        10i 0 value
469
470     d xmlThrDefSaveNoEmptyTags...
471     d                 pr            10i 0 extproc('xmlThrDefSaveNoEmptyTags')
472     d  v                            10i 0 value
473
474     d get_xmlSubstituteEntitiesDefaultValue...
475     d                 pr            10i 0 extproc('__get_xmlSubstitute+
476     d                                       EntitiesDefaultValue')
477
478     d set_xmlSubstituteEntitiesDefaultValue...
479     d                 pr                  extproc('__set_xmlSubstitute+
480     d                                       EntitiesDefaultValue')
481     d  value                        10i 0 value
482
483     d xmlThrDefSubstituteEntitiesDefaultValue...
484     d                 pr            10i 0 extproc('xmlThrDefSubstitute+
485     d                                       EntitiesDefaultValue')
486     d  v                            10i 0 value
487
488     d get_xmlRegisterNodeDefaultValue...
489     d                 pr                  extproc('__get_xmlRegisterNode+
490     d                                       DefaultValue')
491     d                                     like(xmlRegisterNodeFunc)
492
493     d set_xmlRegisterNodeDefaultValue...
494     d                 pr                  extproc('__set_xmlRegisterNode+
495     d                                       DefaultValue')
496     d  value                              value like(xmlRegisterNodeFunc)
497
498     d xmlRegisterNodeDefaultValue...
499     d                 pr                  extproc('__call_xmlRegisterNode+
500     d                                       DefaultValue')
501     d  node                               value like(xmlNodePtr)
502
503     d get_xmlDeregisterNodeDefaultValue...
504     d                 pr                  extproc('__get_xmlDeregisterNode+
505     d                                       DefaultValue')
506     d                                     like(xmlDeregisterNodeFunc)
507
508     d set_xmlDeregisterNodeDefaultValue...
509     d                 pr                  extproc('__set_xmlDeregisterNode+
510     d                                       DefaultValue')
511     d  value                              value like(xmlDeregisterNodeFunc)
512
513     d xmlDeregisterNodeDefaultValue...
514     d                 pr                  extproc('__call_xmlDeregisterNode+
515     d                                       DefaultValue')
516     d  node                               value like(xmlNodePtr)
517
518     d get_xmlParserInputBufferCreateFilenameValue...
519     d                 pr                  extproc('__get_xmlParserInputBuffer+
520     d                                       CreateFilenameValue')
521     d                                     like(xmlParserInputBuffer...
522     d                                       CreateFilenameFunc)
523
524     d set_xmlParserInputBufferCreateFilenameValue...
525     d                 pr                  extproc('__set_xmlParserInputBuffer+
526     d                                       CreateFilenameValue')
527     d  value                              value like(xmlParserInputBuffer...
528     d                                       CreateFilenameFunc)
529
530     d xmlParserInputBufferCreateFilenameValue...
531     d                 pr                  extproc('__call_xmlParserInputBuffer+
532     d                                       CreateFilenameValue')
533     d                                     like(xmlParserInputBufferPtr)
534     d  URI                            *   value options(*string)               const char *
535     d  enc                                value like(xmlCharEncoding)
536
537     d get_xmlOutputBufferCreateFilenameValue...
538     d                 pr                  extproc('__get_xmlOutputBuffer+
539     d                                       CreateFilenameValue')
540     d                                     like(
541     d                                       xmlOutputBufferCreateFilenameFunc)
542
543     d set_xmlOutputBufferCreateFilenameValue...
544     d                 pr                  extproc('__set_xmlOutputBuffer+
545     d                                       CreateFilenameValue')
546     d  value                              value like(
547     d                                       xmlOutputBufferCreateFilenameFunc)
548
549     d xmlOutputBufferCreateFilenameValue...
550     d                 pr                  extproc('__call_xmlOutputBuffer+
551     d                                       CreateFilenameValue')
552     d                                     like(xmlOutputBufferPtr)
553     d  URI                            *   value options(*string)               const char *
554     d  encoder                            value like(xmlCharEncodingHandlerPtr)
555     d  compression                  10i 0 value
556
557      /endif                                                                    XML_GLOBALS_H
558