grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / libs / expat / amiga / expat_vectors.c
blobcf489509cd17dd1f4e1803e66ffc30c2acff531e
1 /*
2 ** Copyright (c) 2001-2009 Expat maintainers.
3 **
4 ** Permission is hereby granted, free of charge, to any person obtaining
5 ** a copy of this software and associated documentation files (the
6 ** "Software"), to deal in the Software without restriction, including
7 ** without limitation the rights to use, copy, modify, merge, publish,
8 ** distribute, sublicense, and/or sell copies of the Software, and to
9 ** permit persons to whom the Software is furnished to do so, subject to
10 ** the following conditions:
12 ** The above copyright notice and this permission notice shall be included
13 ** in all copies or substantial portions of the Software.
15 ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21 ** SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 #include <exec/types.h>
25 #include <exec/exec.h>
26 #include <exec/interfaces.h>
27 #include <interfaces/expat.h>
29 extern uint32 _Expat_Obtain(struct ExpatIFace *);
30 extern uint32 _Expat_Release(struct ExpatIFace *);
31 extern XML_Parser _Expat_XML_ParserCreate(struct ExpatIFace *, const XML_Char * encodingName);
32 extern XML_Parser _Expat_XML_ParserCreateNS(struct ExpatIFace *, const XML_Char * encodingName, XML_Char nsSep);
33 extern XML_Parser _Expat_XML_ParserCreate_MM(struct ExpatIFace *, const XML_Char * encoding, const XML_Memory_Handling_Suite * memsuite, const XML_Char * namespaceSeparator);
34 extern XML_Parser _Expat_XML_ExternalEntityParserCreate(struct ExpatIFace *, XML_Parser parser, const XML_Char * context, const XML_Char * encoding);
35 extern void _Expat_XML_ParserFree(struct ExpatIFace *, XML_Parser parser);
36 extern enum XML_Status _Expat_XML_Parse(struct ExpatIFace *, XML_Parser parser, const char * s, int len, int isFinal);
37 extern enum XML_Status _Expat_XML_ParseBuffer(struct ExpatIFace *, XML_Parser parser, int len, int isFinal);
38 extern void * _Expat_XML_GetBuffer(struct ExpatIFace *, XML_Parser parser, int len);
39 extern void _Expat_XML_SetStartElementHandler(struct ExpatIFace *, XML_Parser parser, XML_StartElementHandler start);
40 extern void _Expat_XML_SetEndElementHandler(struct ExpatIFace *, XML_Parser parser, XML_EndElementHandler end);
41 extern void _Expat_XML_SetElementHandler(struct ExpatIFace *, XML_Parser parser, XML_StartElementHandler start, XML_EndElementHandler end);
42 extern void _Expat_XML_SetCharacterDataHandler(struct ExpatIFace *, XML_Parser parser, XML_CharacterDataHandler handler);
43 extern void _Expat_XML_SetProcessingInstructionHandler(struct ExpatIFace *, XML_Parser parser, XML_ProcessingInstructionHandler handler);
44 extern void _Expat_XML_SetCommentHandler(struct ExpatIFace *, XML_Parser parser, XML_CommentHandler handler);
45 extern void _Expat_XML_SetStartCdataSectionHandler(struct ExpatIFace *, XML_Parser parser, XML_StartCdataSectionHandler start);
46 extern void _Expat_XML_SetEndCdataSectionHandler(struct ExpatIFace *, XML_Parser parser, XML_EndCdataSectionHandler end);
47 extern void _Expat_XML_SetCdataSectionHandler(struct ExpatIFace *, XML_Parser parser, XML_StartCdataSectionHandler start, XML_EndCdataSectionHandler end);
48 extern void _Expat_XML_SetDefaultHandler(struct ExpatIFace *, XML_Parser parser, XML_DefaultHandler handler);
49 extern void _Expat_XML_SetDefaultHandlerExpand(struct ExpatIFace *, XML_Parser parser, XML_DefaultHandler handler);
50 extern void _Expat_XML_SetExternalEntityRefHandler(struct ExpatIFace *, XML_Parser parser, XML_ExternalEntityRefHandler handler);
51 extern void _Expat_XML_SetExternalEntityRefHandlerArg(struct ExpatIFace *, XML_Parser parser, void * arg);
52 extern void _Expat_XML_SetUnknownEncodingHandler(struct ExpatIFace *, XML_Parser parser, XML_UnknownEncodingHandler handler, void * data);
53 extern void _Expat_XML_SetStartNamespaceDeclHandler(struct ExpatIFace *, XML_Parser parser, XML_StartNamespaceDeclHandler start);
54 extern void _Expat_XML_SetEndNamespaceDeclHandler(struct ExpatIFace *, XML_Parser parser, XML_EndNamespaceDeclHandler end);
55 extern void _Expat_XML_SetNamespaceDeclHandler(struct ExpatIFace *, XML_Parser parser, XML_StartNamespaceDeclHandler start, XML_EndNamespaceDeclHandler end);
56 extern void _Expat_XML_SetXmlDeclHandler(struct ExpatIFace *, XML_Parser parser, XML_XmlDeclHandler handler);
57 extern void _Expat_XML_SetStartDoctypeDeclHandler(struct ExpatIFace *, XML_Parser parser, XML_StartDoctypeDeclHandler start);
58 extern void _Expat_XML_SetEndDoctypeDeclHandler(struct ExpatIFace *, XML_Parser parser, XML_EndDoctypeDeclHandler end);
59 extern void _Expat_XML_SetDoctypeDeclHandler(struct ExpatIFace *, XML_Parser parser, XML_StartDoctypeDeclHandler start, XML_EndDoctypeDeclHandler end);
60 extern void _Expat_XML_SetElementDeclHandler(struct ExpatIFace *, XML_Parser parser, XML_ElementDeclHandler eldecl);
61 extern void _Expat_XML_SetAttlistDeclHandler(struct ExpatIFace *, XML_Parser parser, XML_AttlistDeclHandler attdecl);
62 extern void _Expat_XML_SetEntityDeclHandler(struct ExpatIFace *, XML_Parser parser, XML_EntityDeclHandler handler);
63 extern void _Expat_XML_SetUnparsedEntityDeclHandler(struct ExpatIFace *, XML_Parser parser, XML_UnparsedEntityDeclHandler handler);
64 extern void _Expat_XML_SetNotationDeclHandler(struct ExpatIFace *, XML_Parser parser, XML_NotationDeclHandler handler);
65 extern void _Expat_XML_SetNotStandaloneHandler(struct ExpatIFace *, XML_Parser parser, XML_NotStandaloneHandler handler);
66 extern enum XML_Error _Expat_XML_GetErrorCode(struct ExpatIFace *, XML_Parser parser);
67 extern const XML_LChar * _Expat_XML_ErrorString(struct ExpatIFace *, enum XML_Error code);
68 extern long _Expat_XML_GetCurrentByteIndex(struct ExpatIFace *, XML_Parser parser);
69 extern int _Expat_XML_GetCurrentLineNumber(struct ExpatIFace *, XML_Parser parser);
70 extern int _Expat_XML_GetCurrentColumnNumber(struct ExpatIFace *, XML_Parser parser);
71 extern int _Expat_XML_GetCurrentByteCount(struct ExpatIFace *, XML_Parser parser);
72 extern const char * _Expat_XML_GetInputContext(struct ExpatIFace *, XML_Parser parser, int * offset, int * size);
73 extern void _Expat_XML_SetUserData(struct ExpatIFace *, XML_Parser parser, void * userData);
74 extern void _Expat_XML_DefaultCurrent(struct ExpatIFace *, XML_Parser parser);
75 extern void _Expat_XML_UseParserAsHandlerArg(struct ExpatIFace *, XML_Parser parser);
76 extern enum XML_Status _Expat_XML_SetBase(struct ExpatIFace *, XML_Parser parser, const XML_Char * base);
77 extern const XML_Char * _Expat_XML_GetBase(struct ExpatIFace *, XML_Parser parser);
78 extern int _Expat_XML_GetSpecifiedAttributeCount(struct ExpatIFace *, XML_Parser parser);
79 extern int _Expat_XML_GetIdAttributeIndex(struct ExpatIFace *, XML_Parser parser);
80 extern enum XML_Status _Expat_XML_SetEncoding(struct ExpatIFace *, XML_Parser parser, const XML_Char * encoding);
81 extern int _Expat_XML_SetParamEntityParsing(struct ExpatIFace *, XML_Parser parser, enum XML_ParamEntityParsing parsing);
82 extern void _Expat_XML_SetReturnNSTriplet(struct ExpatIFace *, XML_Parser parser, int do_nst);
83 extern const XML_LChar * _Expat_XML_ExpatVersion(struct ExpatIFace *);
84 extern XML_Expat_Version _Expat_XML_ExpatVersionInfo(struct ExpatIFace *);
85 extern XML_Bool _Expat_XML_ParserReset(struct ExpatIFace *, XML_Parser parser, const XML_Char * encoding);
86 extern void _Expat_XML_SetSkippedEntityHandler(struct ExpatIFace *, XML_Parser parser, XML_SkippedEntityHandler handler);
87 extern enum XML_Error _Expat_XML_UseForeignDTD(struct ExpatIFace *, XML_Parser parser, XML_Bool useDTD);
88 extern const XML_Feature * _Expat_XML_GetFeatureList(struct ExpatIFace *);
89 extern enum XML_Status _Expat_XML_StopParser(struct ExpatIFace *, XML_Parser parser, XML_Bool resumable);
90 extern enum XML_Status _Expat_XML_ResumeParser(struct ExpatIFace *, XML_Parser parser);
91 extern void _Expat_XML_GetParsingStatus(struct ExpatIFace *, XML_Parser parser, XML_ParsingStatus * status);
92 extern void _Expat_XML_FreeContentModel(struct ExpatIFace *, XML_Parser parser, XML_Content * model);
93 extern void * _Expat_XML_MemMalloc(struct ExpatIFace *, XML_Parser parser, size_t size);
94 extern void * _Expat_XML_MemRealloc(struct ExpatIFace *, XML_Parser parser, void * ptr, size_t size);
95 extern void _Expat_XML_MemFree(struct ExpatIFace *, XML_Parser parser, void * ptr);
98 CONST APTR main_vectors[] =
100 _Expat_Obtain,
101 _Expat_Release,
102 NULL,
103 NULL,
104 _Expat_XML_ParserCreate,
105 _Expat_XML_ParserCreateNS,
106 _Expat_XML_ParserCreate_MM,
107 _Expat_XML_ExternalEntityParserCreate,
108 _Expat_XML_ParserFree,
109 _Expat_XML_Parse,
110 _Expat_XML_ParseBuffer,
111 _Expat_XML_GetBuffer,
112 _Expat_XML_SetStartElementHandler,
113 _Expat_XML_SetEndElementHandler,
114 _Expat_XML_SetElementHandler,
115 _Expat_XML_SetCharacterDataHandler,
116 _Expat_XML_SetProcessingInstructionHandler,
117 _Expat_XML_SetCommentHandler,
118 _Expat_XML_SetStartCdataSectionHandler,
119 _Expat_XML_SetEndCdataSectionHandler,
120 _Expat_XML_SetCdataSectionHandler,
121 _Expat_XML_SetDefaultHandler,
122 _Expat_XML_SetDefaultHandlerExpand,
123 _Expat_XML_SetExternalEntityRefHandler,
124 _Expat_XML_SetExternalEntityRefHandlerArg,
125 _Expat_XML_SetUnknownEncodingHandler,
126 _Expat_XML_SetStartNamespaceDeclHandler,
127 _Expat_XML_SetEndNamespaceDeclHandler,
128 _Expat_XML_SetNamespaceDeclHandler,
129 _Expat_XML_SetXmlDeclHandler,
130 _Expat_XML_SetStartDoctypeDeclHandler,
131 _Expat_XML_SetEndDoctypeDeclHandler,
132 _Expat_XML_SetDoctypeDeclHandler,
133 _Expat_XML_SetElementDeclHandler,
134 _Expat_XML_SetAttlistDeclHandler,
135 _Expat_XML_SetEntityDeclHandler,
136 _Expat_XML_SetUnparsedEntityDeclHandler,
137 _Expat_XML_SetNotationDeclHandler,
138 _Expat_XML_SetNotStandaloneHandler,
139 _Expat_XML_GetErrorCode,
140 _Expat_XML_ErrorString,
141 _Expat_XML_GetCurrentByteIndex,
142 _Expat_XML_GetCurrentLineNumber,
143 _Expat_XML_GetCurrentColumnNumber,
144 _Expat_XML_GetCurrentByteCount,
145 _Expat_XML_GetInputContext,
146 _Expat_XML_SetUserData,
147 _Expat_XML_DefaultCurrent,
148 _Expat_XML_UseParserAsHandlerArg,
149 _Expat_XML_SetBase,
150 _Expat_XML_GetBase,
151 _Expat_XML_GetSpecifiedAttributeCount,
152 _Expat_XML_GetIdAttributeIndex,
153 _Expat_XML_SetEncoding,
154 _Expat_XML_SetParamEntityParsing,
155 _Expat_XML_SetReturnNSTriplet,
156 _Expat_XML_ExpatVersion,
157 _Expat_XML_ExpatVersionInfo,
158 _Expat_XML_ParserReset,
159 _Expat_XML_SetSkippedEntityHandler,
160 _Expat_XML_UseForeignDTD,
161 _Expat_XML_GetFeatureList,
162 _Expat_XML_StopParser,
163 _Expat_XML_ResumeParser,
164 _Expat_XML_GetParsingStatus,
165 _Expat_XML_FreeContentModel,
166 _Expat_XML_MemMalloc,
167 _Expat_XML_MemRealloc,
168 _Expat_XML_MemFree,
169 (APTR)-1
172 uint32 _Expat_Obtain(struct ExpatIFace *Self)
174 return ++Self->Data.RefCount;
177 uint32 _Expat_Release(struct ExpatIFace *Self)
179 return --Self->Data.RefCount;
182 XML_Parser _Expat_XML_ParserCreate(struct ExpatIFace * Self, const XML_Char *encoding)
184 return XML_ParserCreate(encoding);
187 XML_Parser _Expat_XML_ParserCreateNS(struct ExpatIFace * Self, const XML_Char *encoding, XML_Char nsSep)
189 return XML_ParserCreateNS(encoding, nsSep);
192 XML_Parser _Expat_XML_ParserCreate_MM(struct ExpatIFace * Self, const XML_Char *encoding, const XML_Memory_Handling_Suite *memsuite, const XML_Char *namespaceSeparator)
194 return XML_ParserCreate_MM(encoding, memsuite, namespaceSeparator);
197 XML_Parser _Expat_XML_ExternalEntityParserCreate(struct ExpatIFace * Self, XML_Parser parser, const XML_Char *context, const XML_Char *encoding)
199 return XML_ExternalEntityParserCreate(parser, context, encoding);
202 void _Expat_XML_ParserFree(struct ExpatIFace *Self, XML_Parser parser)
204 XML_ParserFree(parser);
207 enum XML_Status _Expat_XML_Parse(struct ExpatIFace * Self, XML_Parser parser, const char * s, int len, int isFinal)
209 return XML_Parse(parser, s, len, isFinal);
212 enum XML_Status _Expat_XML_ParseBuffer(struct ExpatIFace * Self, XML_Parser parser, int len, int isFinal)
214 return XML_ParseBuffer(parser, len, isFinal);
217 void * _Expat_XML_GetBuffer(struct ExpatIFace * Self, XML_Parser parser, int len)
219 return XML_GetBuffer(parser, len);
222 void _Expat_XML_SetStartElementHandler(struct ExpatIFace * Self, XML_Parser parser, XML_StartElementHandler start)
224 XML_SetStartElementHandler(parser, start);
227 void _Expat_XML_SetEndElementHandler(struct ExpatIFace * Self, XML_Parser parser, XML_EndElementHandler end)
229 XML_SetEndElementHandler(parser, end);
232 void _Expat_XML_SetElementHandler(struct ExpatIFace * Self, XML_Parser parser, XML_StartElementHandler start, XML_EndElementHandler end)
234 XML_SetElementHandler(parser, start, end);
237 void _Expat_XML_SetCharacterDataHandler(struct ExpatIFace * Self, XML_Parser parser, XML_CharacterDataHandler handler)
239 XML_SetCharacterDataHandler(parser, handler);
242 void _Expat_XML_SetProcessingInstructionHandler(struct ExpatIFace * Self, XML_Parser parser, XML_ProcessingInstructionHandler handler)
244 XML_SetProcessingInstructionHandler(parser, handler);
247 void _Expat_XML_SetCommentHandler(struct ExpatIFace * Self, XML_Parser parser, XML_CommentHandler handler)
249 XML_SetCommentHandler(parser, handler);
252 void _Expat_XML_SetStartCdataSectionHandler(struct ExpatIFace * Self, XML_Parser parser, XML_StartCdataSectionHandler start)
254 XML_SetStartCdataSectionHandler(parser, start);
257 void _Expat_XML_SetEndCdataSectionHandler(struct ExpatIFace * Self, XML_Parser parser, XML_EndCdataSectionHandler end)
259 XML_SetEndCdataSectionHandler(parser, end);
262 void _Expat_XML_SetCdataSectionHandler(struct ExpatIFace * Self, XML_Parser parser, XML_StartCdataSectionHandler start, XML_EndCdataSectionHandler end)
264 XML_SetCdataSectionHandler(parser, start, end);
267 void _Expat_XML_SetDefaultHandler(struct ExpatIFace * Self, XML_Parser parser, XML_DefaultHandler handler)
269 XML_SetDefaultHandler(parser, handler);
272 void _Expat_XML_SetDefaultHandlerExpand(struct ExpatIFace * Self, XML_Parser parser, XML_DefaultHandler handler)
274 XML_SetDefaultHandlerExpand(parser, handler);
277 void _Expat_XML_SetExternalEntityRefHandler(struct ExpatIFace * Self, XML_Parser parser, XML_ExternalEntityRefHandler handler)
279 XML_SetExternalEntityRefHandler(parser, handler);
282 void _Expat_XML_SetExternalEntityRefHandlerArg(struct ExpatIFace * Self, XML_Parser parser, void * arg)
284 XML_SetExternalEntityRefHandlerArg(parser, arg);
287 void _Expat_XML_SetUnknownEncodingHandler(struct ExpatIFace * Self, XML_Parser parser, XML_UnknownEncodingHandler handler, void * data)
289 XML_SetUnknownEncodingHandler(parser, handler, data);
292 void _Expat_XML_SetStartNamespaceDeclHandler(struct ExpatIFace * Self, XML_Parser parser, XML_StartNamespaceDeclHandler start)
294 XML_SetStartNamespaceDeclHandler(parser, start);
297 void _Expat_XML_SetEndNamespaceDeclHandler(struct ExpatIFace * Self, XML_Parser parser, XML_EndNamespaceDeclHandler end)
299 XML_SetEndNamespaceDeclHandler(parser, end);
302 void _Expat_XML_SetNamespaceDeclHandler(struct ExpatIFace * Self, XML_Parser parser, XML_StartNamespaceDeclHandler start, XML_EndNamespaceDeclHandler end)
304 XML_SetNamespaceDeclHandler(parser, start, end);
307 void _Expat_XML_SetXmlDeclHandler(struct ExpatIFace * Self, XML_Parser parser, XML_XmlDeclHandler handler)
309 XML_SetXmlDeclHandler(parser, handler);
312 void _Expat_XML_SetStartDoctypeDeclHandler(struct ExpatIFace * Self, XML_Parser parser, XML_StartDoctypeDeclHandler start)
314 XML_SetStartDoctypeDeclHandler(parser, start);
317 void _Expat_XML_SetEndDoctypeDeclHandler(struct ExpatIFace * Self, XML_Parser parser, XML_EndDoctypeDeclHandler end)
319 XML_SetEndDoctypeDeclHandler(parser, end);
322 void _Expat_XML_SetDoctypeDeclHandler(struct ExpatIFace * Self, XML_Parser parser, XML_StartDoctypeDeclHandler start, XML_EndDoctypeDeclHandler end)
324 XML_SetDoctypeDeclHandler(parser, start, end);
327 void _Expat_XML_SetElementDeclHandler(struct ExpatIFace * Self, XML_Parser parser, XML_ElementDeclHandler eldecl)
329 XML_SetElementDeclHandler(parser, eldecl);
332 void _Expat_XML_SetAttlistDeclHandler(struct ExpatIFace * Self, XML_Parser parser, XML_AttlistDeclHandler attdecl)
334 XML_SetAttlistDeclHandler(parser, attdecl);
337 void _Expat_XML_SetEntityDeclHandler(struct ExpatIFace * Self, XML_Parser parser, XML_EntityDeclHandler handler)
339 XML_SetEntityDeclHandler(parser, handler);
342 void _Expat_XML_SetUnparsedEntityDeclHandler(struct ExpatIFace * Self, XML_Parser parser, XML_UnparsedEntityDeclHandler handler)
344 XML_SetUnparsedEntityDeclHandler(parser, handler);
347 void _Expat_XML_SetNotationDeclHandler(struct ExpatIFace * Self, XML_Parser parser, XML_NotationDeclHandler handler)
349 XML_SetNotationDeclHandler(parser, handler);
352 void _Expat_XML_SetNotStandaloneHandler(struct ExpatIFace * Self, XML_Parser parser, XML_NotStandaloneHandler handler)
354 XML_SetNotStandaloneHandler(parser, handler);
357 enum XML_Error _Expat_XML_GetErrorCode(struct ExpatIFace * Self, XML_Parser parser)
359 return XML_GetErrorCode(parser);
362 const XML_LChar * _Expat_XML_ErrorString(struct ExpatIFace * Self, enum XML_Error code)
364 return XML_ErrorString(code);
367 long _Expat_XML_GetCurrentByteIndex(struct ExpatIFace * Self, XML_Parser parser)
369 return XML_GetCurrentByteIndex(parser);
372 int _Expat_XML_GetCurrentLineNumber(struct ExpatIFace * Self, XML_Parser parser)
374 return XML_GetCurrentLineNumber(parser);
377 int _Expat_XML_GetCurrentColumnNumber(struct ExpatIFace * Self, XML_Parser parser)
379 return XML_GetCurrentColumnNumber(parser);
382 int _Expat_XML_GetCurrentByteCount(struct ExpatIFace * Self, XML_Parser parser)
384 return XML_GetCurrentByteCount(parser);
387 const char * _Expat_XML_GetInputContext(struct ExpatIFace * Self, XML_Parser parser, int * offset, int * size)
389 return XML_GetInputContext(parser, offset, size);
392 void _Expat_XML_SetUserData(struct ExpatIFace * Self, XML_Parser parser, void * userData)
394 XML_SetUserData(parser, userData);
397 void _Expat_XML_DefaultCurrent(struct ExpatIFace * Self, XML_Parser parser)
399 XML_DefaultCurrent(parser);
402 void _Expat_XML_UseParserAsHandlerArg(struct ExpatIFace * Self, XML_Parser parser)
404 XML_UseParserAsHandlerArg(parser);
407 enum XML_Status _Expat_XML_SetBase(struct ExpatIFace * Self, XML_Parser parser, const XML_Char *p)
409 return XML_SetBase(parser, p);
412 const XML_Char * _Expat_XML_GetBase(struct ExpatIFace * Self, XML_Parser parser)
414 return XML_GetBase(parser);
417 int _Expat_XML_GetSpecifiedAttributeCount(struct ExpatIFace * Self, XML_Parser parser)
419 return XML_GetSpecifiedAttributeCount(parser);
422 int _Expat_XML_GetIdAttributeIndex(struct ExpatIFace * Self, XML_Parser parser)
424 return XML_GetIdAttributeIndex(parser);
427 enum XML_Status _Expat_XML_SetEncoding(struct ExpatIFace * Self, XML_Parser parser, const XML_Char *encoding)
429 return XML_SetEncoding(parser, encoding);
432 int _Expat_XML_SetParamEntityParsing(struct ExpatIFace * Self, XML_Parser parser, enum XML_ParamEntityParsing parsing)
434 return XML_SetParamEntityParsing(parser, parsing);
437 void _Expat_XML_SetReturnNSTriplet(struct ExpatIFace * Self, XML_Parser parser, int do_nst)
439 XML_SetReturnNSTriplet(parser, do_nst);
442 const XML_LChar * _Expat_XML_ExpatVersion(struct ExpatIFace * Self)
444 return XML_ExpatVersion();
447 XML_Expat_Version _Expat_XML_ExpatVersionInfo(struct ExpatIFace * Self)
449 return XML_ExpatVersionInfo();
452 XML_Bool _Expat_XML_ParserReset(struct ExpatIFace * Self, XML_Parser parser, const XML_Char *encoding)
454 return XML_ParserReset(parser, encoding);
457 void _Expat_XML_SetSkippedEntityHandler(struct ExpatIFace * Self, XML_Parser parser, XML_SkippedEntityHandler handler)
459 XML_SetSkippedEntityHandler(parser, handler);
462 enum XML_Error _Expat_XML_UseForeignDTD(struct ExpatIFace * Self, XML_Parser parser, XML_Bool useDTD)
464 return XML_UseForeignDTD(parser, useDTD);
467 const XML_Feature * _Expat_XML_GetFeatureList(struct ExpatIFace * Self)
469 return XML_GetFeatureList();
472 enum XML_Status _Expat_XML_StopParser(struct ExpatIFace * Self, XML_Parser parser, XML_Bool resumable)
474 return XML_StopParser(parser, resumable);
477 enum XML_Status _Expat_XML_ResumeParser(struct ExpatIFace * Self, XML_Parser parser)
479 return XML_ResumeParser(parser);
482 void _Expat_XML_GetParsingStatus(struct ExpatIFace * Self, XML_Parser parser, XML_ParsingStatus * status)
484 XML_GetParsingStatus(parser, status);
487 void _Expat_XML_FreeContentModel(struct ExpatIFace * Self, XML_Parser parser, XML_Content * model)
489 XML_FreeContentModel(parser, model);
492 void * _Expat_XML_MemMalloc(struct ExpatIFace * Self, XML_Parser parser, size_t size)
494 return XML_MemMalloc(parser, size);
497 void * _Expat_XML_MemRealloc(struct ExpatIFace * Self, XML_Parser parser, void * ptr, size_t size)
499 XML_MemRealloc(parser, ptr, size);
502 void _Expat_XML_MemFree(struct ExpatIFace * Self, XML_Parser parser, void * ptr)
504 XML_MemFree(parser, ptr);