1 /* Automatically generated header (sfdc 1.4)! Do not edit! */
3 #ifndef _INLINE_EXPAT_H
4 #define _INLINE_EXPAT_H
6 #ifndef _SFDC_VARARG_DEFINED
7 #define _SFDC_VARARG_DEFINED
8 #ifdef __HAVE_IPTR_ATTR__
9 typedef APTR _sfdc_vararg
__attribute__((iptr
));
11 typedef ULONG _sfdc_vararg
;
12 #endif /* __HAVE_IPTR_ATTR__ */
13 #endif /* _SFDC_VARARG_DEFINED */
15 #ifndef AROS_LIBCALL_H
16 #include <aros/libcall.h>
17 #endif /* !AROS_LIBCALL_H */
19 #ifndef EXPAT_BASE_NAME
20 #define EXPAT_BASE_NAME ExpatBase
21 #endif /* !EXPAT_BASE_NAME */
23 #define XML_ParserCreate(___encodingName) \
24 AROS_LC1(XML_Parser, XML_ParserCreate, \
25 AROS_LCA(const XML_Char *, (___encodingName), A0), \
26 struct Library *, EXPAT_BASE_NAME, 5, Expat)
28 #define XML_ParserCreateNS(___encodingName, ___nsSep) \
29 AROS_LC2(XML_Parser, XML_ParserCreateNS, \
30 AROS_LCA(const XML_Char *, (___encodingName), A0), \
31 AROS_LCA(XML_Char, (___nsSep), D0), \
32 struct Library *, EXPAT_BASE_NAME, 6, Expat)
34 #define XML_ParserCreate_MM(___encodingName, ___memsuite, ___nameSep) \
35 AROS_LC3(XML_Parser, XML_ParserCreate_MM, \
36 AROS_LCA(const XML_Char *, (___encodingName), A0), \
37 AROS_LCA(const XML_Memory_Handling_Suite *, (___memsuite), A1), \
38 AROS_LCA(const XML_Char *, (___nameSep), A2), \
39 struct Library *, EXPAT_BASE_NAME, 7, Expat)
41 #define XML_ExternalEntityParserCreate(___oldParser, ___context, ___encodingName) \
42 AROS_LC3(XML_Parser, XML_ExternalEntityParserCreate, \
43 AROS_LCA(XML_Parser, (___oldParser), A0), \
44 AROS_LCA(const XML_Char *, (___context), A1), \
45 AROS_LCA(const XML_Char *, (___encodingName), A2), \
46 struct Library *, EXPAT_BASE_NAME, 8, Expat)
48 #define XML_ParserFree(___parser) \
49 AROS_LC1(void, XML_ParserFree, \
50 AROS_LCA(XML_Parser, (___parser), A0), \
51 struct Library *, EXPAT_BASE_NAME, 9, Expat)
53 #define XML_Parse(___parser, ___s, ___len, ___isFinal) \
54 AROS_LC4(int, XML_Parse, \
55 AROS_LCA(XML_Parser, (___parser), A0), \
56 AROS_LCA(const char *, (___s), A1), \
57 AROS_LCA(int, (___len), D0), \
58 AROS_LCA(int, (___isFinal), D1), \
59 struct Library *, EXPAT_BASE_NAME, 10, Expat)
61 #define XML_ParseBuffer(___parser, ___len, ___isFinal) \
62 AROS_LC3(int, XML_ParseBuffer, \
63 AROS_LCA(XML_Parser, (___parser), A0), \
64 AROS_LCA(int, (___len), D0), \
65 AROS_LCA(int, (___isFinal), D1), \
66 struct Library *, EXPAT_BASE_NAME, 11, Expat)
68 #define XML_GetBuffer(___parser, ___len) \
69 AROS_LC2(void *, XML_GetBuffer, \
70 AROS_LCA(XML_Parser, (___parser), A0), \
71 AROS_LCA(int, (___len), D0), \
72 struct Library *, EXPAT_BASE_NAME, 12, Expat)
74 #define XML_SetStartElementHandler(___parser, ___start) \
75 AROS_LC2(void, XML_SetStartElementHandler, \
76 AROS_LCA(XML_Parser, (___parser), A0), \
77 AROS_LCA(XML_StartElementHandler, (___start), A1), \
78 struct Library *, EXPAT_BASE_NAME, 13, Expat)
80 #define XML_SetEndElementHandler(___parser, ___end) \
81 AROS_LC2(void, XML_SetEndElementHandler, \
82 AROS_LCA(XML_Parser, (___parser), A0), \
83 AROS_LCA(XML_EndElementHandler, (___end), A1), \
84 struct Library *, EXPAT_BASE_NAME, 14, Expat)
86 #define XML_SetElementHandler(___parser, ___start, ___end) \
87 AROS_LC3(void, XML_SetElementHandler, \
88 AROS_LCA(XML_Parser, (___parser), A0), \
89 AROS_LCA(XML_StartElementHandler, (___start), A1), \
90 AROS_LCA(XML_EndElementHandler, (___end), A2), \
91 struct Library *, EXPAT_BASE_NAME, 15, Expat)
93 #define XML_SetCharacterDataHandler(___parser, ___handler) \
94 AROS_LC2(void, XML_SetCharacterDataHandler, \
95 AROS_LCA(XML_Parser, (___parser), A0), \
96 AROS_LCA(XML_CharacterDataHandler, (___handler), A1), \
97 struct Library *, EXPAT_BASE_NAME, 16, Expat)
99 #define XML_SetProcessingInstructionHandler(___parser, ___handler) \
100 AROS_LC2(void, XML_SetProcessingInstructionHandler, \
101 AROS_LCA(XML_Parser, (___parser), A0), \
102 AROS_LCA(XML_ProcessingInstructionHandler, (___handler), A1), \
103 struct Library *, EXPAT_BASE_NAME, 17, Expat)
105 #define XML_SetCommentHandler(___parser, ___handler) \
106 AROS_LC2(void, XML_SetCommentHandler, \
107 AROS_LCA(XML_Parser, (___parser), A0), \
108 AROS_LCA(XML_CommentHandler, (___handler), A1), \
109 struct Library *, EXPAT_BASE_NAME, 18, Expat)
111 #define XML_SetStartCdataSectionHandler(___parser, ___start) \
112 AROS_LC2(void, XML_SetStartCdataSectionHandler, \
113 AROS_LCA(XML_Parser, (___parser), A0), \
114 AROS_LCA(XML_StartCdataSectionHandler, (___start), A1), \
115 struct Library *, EXPAT_BASE_NAME, 19, Expat)
117 #define XML_SetEndCdataSectionHandler(___parser, ___end) \
118 AROS_LC2(void, XML_SetEndCdataSectionHandler, \
119 AROS_LCA(XML_Parser, (___parser), A0), \
120 AROS_LCA(XML_EndCdataSectionHandler, (___end), A1), \
121 struct Library *, EXPAT_BASE_NAME, 20, Expat)
123 #define XML_SetCdataSectionHandler(___parser, ___start, ___end) \
124 AROS_LC3(void, XML_SetCdataSectionHandler, \
125 AROS_LCA(XML_Parser, (___parser), A0), \
126 AROS_LCA(XML_StartCdataSectionHandler, (___start), A1), \
127 AROS_LCA(XML_EndCdataSectionHandler, (___end), A2), \
128 struct Library *, EXPAT_BASE_NAME, 21, Expat)
130 #define XML_SetDefaultHandler(___parser, ___handler) \
131 AROS_LC2(void, XML_SetDefaultHandler, \
132 AROS_LCA(XML_Parser, (___parser), A0), \
133 AROS_LCA(XML_DefaultHandler, (___handler), A1), \
134 struct Library *, EXPAT_BASE_NAME, 22, Expat)
136 #define XML_SetDefaultHandlerExpand(___parser, ___handler) \
137 AROS_LC2(void, XML_SetDefaultHandlerExpand, \
138 AROS_LCA(XML_Parser, (___parser), A0), \
139 AROS_LCA(XML_DefaultHandler, (___handler), A1), \
140 struct Library *, EXPAT_BASE_NAME, 23, Expat)
142 #define XML_SetExternalEntityRefHandler(___parser, ___handler) \
143 AROS_LC2(void, XML_SetExternalEntityRefHandler, \
144 AROS_LCA(XML_Parser, (___parser), A0), \
145 AROS_LCA(XML_ExternalEntityRefHandler, (___handler), A1), \
146 struct Library *, EXPAT_BASE_NAME, 24, Expat)
148 #define XML_SetExternalEntityRefHandlerArg(___parser, ___arg) \
149 AROS_LC2(void, XML_SetExternalEntityRefHandlerArg, \
150 AROS_LCA(XML_Parser, (___parser), A0), \
151 AROS_LCA(void *, (___arg), A1), \
152 struct Library *, EXPAT_BASE_NAME, 25, Expat)
154 #define XML_SetUnknownEncodingHandler(___parser, ___handler, ___data) \
155 AROS_LC3(void, XML_SetUnknownEncodingHandler, \
156 AROS_LCA(XML_Parser, (___parser), A0), \
157 AROS_LCA(XML_UnknownEncodingHandler, (___handler), A1), \
158 AROS_LCA(void *, (___data), A2), \
159 struct Library *, EXPAT_BASE_NAME, 26, Expat)
161 #define XML_SetStartNamespaceDeclHandler(___parser, ___start) \
162 AROS_LC2(void, XML_SetStartNamespaceDeclHandler, \
163 AROS_LCA(XML_Parser, (___parser), A0), \
164 AROS_LCA(XML_StartNamespaceDeclHandler, (___start), A1), \
165 struct Library *, EXPAT_BASE_NAME, 27, Expat)
167 #define XML_SetEndNamespaceDeclHandler(___parser, ___end) \
168 AROS_LC2(void, XML_SetEndNamespaceDeclHandler, \
169 AROS_LCA(XML_Parser, (___parser), A0), \
170 AROS_LCA(XML_EndNamespaceDeclHandler, (___end), A1), \
171 struct Library *, EXPAT_BASE_NAME, 28, Expat)
173 #define XML_SetNamespaceDeclHandler(___parser, ___start, ___end) \
174 AROS_LC3(void, XML_SetNamespaceDeclHandler, \
175 AROS_LCA(XML_Parser, (___parser), A0), \
176 AROS_LCA(XML_StartNamespaceDeclHandler, (___start), A1), \
177 AROS_LCA(XML_EndNamespaceDeclHandler, (___end), A2), \
178 struct Library *, EXPAT_BASE_NAME, 29, Expat)
180 #define XML_SetXmlDeclHandler(___parser, ___handler) \
181 AROS_LC2(void, XML_SetXmlDeclHandler, \
182 AROS_LCA(XML_Parser, (___parser), A0), \
183 AROS_LCA(XML_XmlDeclHandler, (___handler), A1), \
184 struct Library *, EXPAT_BASE_NAME, 30, Expat)
186 #define XML_SetStartDoctypeDeclHandler(___parser, ___start) \
187 AROS_LC2(void, XML_SetStartDoctypeDeclHandler, \
188 AROS_LCA(XML_Parser, (___parser), A0), \
189 AROS_LCA(XML_StartDoctypeDeclHandler, (___start), A1), \
190 struct Library *, EXPAT_BASE_NAME, 31, Expat)
192 #define XML_SetEndDoctypeDeclHandler(___parser, ___end) \
193 AROS_LC2(void, XML_SetEndDoctypeDeclHandler, \
194 AROS_LCA(XML_Parser, (___parser), A0), \
195 AROS_LCA(XML_EndDoctypeDeclHandler, (___end), A1), \
196 struct Library *, EXPAT_BASE_NAME, 32, Expat)
198 #define XML_SetDoctypeDeclHandler(___parser, ___start, ___end) \
199 AROS_LC3(void, XML_SetDoctypeDeclHandler, \
200 AROS_LCA(XML_Parser, (___parser), A0), \
201 AROS_LCA(XML_StartDoctypeDeclHandler, (___start), A1), \
202 AROS_LCA(XML_EndDoctypeDeclHandler, (___end), A2), \
203 struct Library *, EXPAT_BASE_NAME, 33, Expat)
205 #define XML_SetElementDeclHandler(___parser, ___eldecl) \
206 AROS_LC2(void, XML_SetElementDeclHandler, \
207 AROS_LCA(XML_Parser, (___parser), A0), \
208 AROS_LCA(XML_ElementDeclHandler, (___eldecl), A1), \
209 struct Library *, EXPAT_BASE_NAME, 34, Expat)
211 #define XML_SetAttlistDeclHandler(___parser, ___attdecl) \
212 AROS_LC2(void, XML_SetAttlistDeclHandler, \
213 AROS_LCA(XML_Parser, (___parser), A0), \
214 AROS_LCA(XML_AttlistDeclHandler, (___attdecl), A1), \
215 struct Library *, EXPAT_BASE_NAME, 35, Expat)
217 #define XML_SetEntityDeclHandler(___parser, ___handler) \
218 AROS_LC2(void, XML_SetEntityDeclHandler, \
219 AROS_LCA(XML_Parser, (___parser), A0), \
220 AROS_LCA(XML_EntityDeclHandler, (___handler), A1), \
221 struct Library *, EXPAT_BASE_NAME, 36, Expat)
223 #define XML_SetUnparsedEntityDeclHandler(___parser, ___handler) \
224 AROS_LC2(void, XML_SetUnparsedEntityDeclHandler, \
225 AROS_LCA(XML_Parser, (___parser), A0), \
226 AROS_LCA(XML_UnparsedEntityDeclHandler, (___handler), A1), \
227 struct Library *, EXPAT_BASE_NAME, 37, Expat)
229 #define XML_SetNotationDeclHandler(___parser, ___handler) \
230 AROS_LC2(void, XML_SetNotationDeclHandler, \
231 AROS_LCA(XML_Parser, (___parser), A0), \
232 AROS_LCA(XML_NotationDeclHandler, (___handler), A1), \
233 struct Library *, EXPAT_BASE_NAME, 38, Expat)
235 #define XML_SetNotStandaloneHandler(___parser, ___handler) \
236 AROS_LC2(void, XML_SetNotStandaloneHandler, \
237 AROS_LCA(XML_Parser, (___parser), A0), \
238 AROS_LCA(XML_NotStandaloneHandler, (___handler), A1), \
239 struct Library *, EXPAT_BASE_NAME, 39, Expat)
241 #define XML_GetErrorCode(___parser) \
242 AROS_LC1(int, XML_GetErrorCode, \
243 AROS_LCA(XML_Parser, (___parser), A0), \
244 struct Library *, EXPAT_BASE_NAME, 40, Expat)
246 #define XML_ErrorString(___code) \
247 AROS_LC1(const XML_LChar *, XML_ErrorString, \
248 AROS_LCA(int, (___code), D0), \
249 struct Library *, EXPAT_BASE_NAME, 41, Expat)
251 #define XML_GetCurrentByteIndex(___parser) \
252 AROS_LC1(long, XML_GetCurrentByteIndex, \
253 AROS_LCA(XML_Parser, (___parser), A0), \
254 struct Library *, EXPAT_BASE_NAME, 42, Expat)
256 #define XML_GetCurrentLineNumber(___parser) \
257 AROS_LC1(int, XML_GetCurrentLineNumber, \
258 AROS_LCA(XML_Parser, (___parser), A0), \
259 struct Library *, EXPAT_BASE_NAME, 43, Expat)
261 #define XML_GetCurrentColumnNumber(___parser) \
262 AROS_LC1(int, XML_GetCurrentColumnNumber, \
263 AROS_LCA(XML_Parser, (___parser), A0), \
264 struct Library *, EXPAT_BASE_NAME, 44, Expat)
266 #define XML_GetCurrentByteCount(___parser) \
267 AROS_LC1(int, XML_GetCurrentByteCount, \
268 AROS_LCA(XML_Parser, (___parser), A0), \
269 struct Library *, EXPAT_BASE_NAME, 45, Expat)
271 #define XML_GetInputContext(___parser, ___offset, ___size) \
272 AROS_LC3(const char *, XML_GetInputContext, \
273 AROS_LCA(XML_Parser, (___parser), A0), \
274 AROS_LCA(int *, (___offset), A1), \
275 AROS_LCA(int *, (___size), A2), \
276 struct Library *, EXPAT_BASE_NAME, 46, Expat)
278 #define XML_SetUserData(___parser, ___p) \
279 AROS_LC2(void, XML_SetUserData, \
280 AROS_LCA(XML_Parser, (___parser), A0), \
281 AROS_LCA(void *, (___p), A1), \
282 struct Library *, EXPAT_BASE_NAME, 47, Expat)
284 #define XML_DefaultCurrent(___parser) \
285 AROS_LC1(void, XML_DefaultCurrent, \
286 AROS_LCA(XML_Parser, (___parser), A0), \
287 struct Library *, EXPAT_BASE_NAME, 48, Expat)
289 #define XML_UseParserAsHandlerArg(___parser) \
290 AROS_LC1(void, XML_UseParserAsHandlerArg, \
291 AROS_LCA(XML_Parser, (___parser), A0), \
292 struct Library *, EXPAT_BASE_NAME, 49, Expat)
294 #define XML_SetBase(___parser, ___p) \
295 AROS_LC2(int, XML_SetBase, \
296 AROS_LCA(XML_Parser, (___parser), A0), \
297 AROS_LCA(const XML_Char *, (___p), A1), \
298 struct Library *, EXPAT_BASE_NAME, 50, Expat)
300 #define XML_GetBase(___parser) \
301 AROS_LC1(const XML_Char *, XML_GetBase, \
302 AROS_LCA(XML_Parser, (___parser), A0), \
303 struct Library *, EXPAT_BASE_NAME, 51, Expat)
305 #define XML_GetSpecifiedAttributeCount(___parser) \
306 AROS_LC1(int, XML_GetSpecifiedAttributeCount, \
307 AROS_LCA(XML_Parser, (___parser), A0), \
308 struct Library *, EXPAT_BASE_NAME, 52, Expat)
310 #define XML_GetIdAttributeIndex(___parser) \
311 AROS_LC1(int, XML_GetIdAttributeIndex, \
312 AROS_LCA(XML_Parser, (___parser), A0), \
313 struct Library *, EXPAT_BASE_NAME, 53, Expat)
315 #define XML_SetEncoding(___parser, ___encodingName) \
316 AROS_LC2(int, XML_SetEncoding, \
317 AROS_LCA(XML_Parser, (___parser), A0), \
318 AROS_LCA(const XML_Char *, (___encodingName), A1), \
319 struct Library *, EXPAT_BASE_NAME, 54, Expat)
321 #define XML_SetParamEntityParsing(___parser, ___peParsing) \
322 AROS_LC2(int, XML_SetParamEntityParsing, \
323 AROS_LCA(XML_Parser, (___parser), A0), \
324 AROS_LCA(int, (___peParsing), D0), \
325 struct Library *, EXPAT_BASE_NAME, 55, Expat)
327 #define XML_SetReturnNSTriplet(___parser, ___do_nst) \
328 AROS_LC2(void, XML_SetReturnNSTriplet, \
329 AROS_LCA(XML_Parser, (___parser), A0), \
330 AROS_LCA(int, (___do_nst), D0), \
331 struct Library *, EXPAT_BASE_NAME, 56, Expat)
333 #define XML_ExpatVersion() \
334 AROS_LC0(const XML_LChar *, XML_ExpatVersion, \
335 struct Library *, EXPAT_BASE_NAME, 57, Expat)
337 #define XML_ExpatVersionInfo() \
338 AROS_LC0(XML_Expat_Version, XML_ExpatVersionInfo, \
339 struct Library *, EXPAT_BASE_NAME, 58, Expat)
341 #define XML_ParserReset(___parser, ___encodingName) \
342 AROS_LC2(XML_Bool, XML_ParserReset, \
343 AROS_LCA(XML_Parser, (___parser), A0), \
344 AROS_LCA(const XML_Char *, (___encodingName), A1), \
345 struct Library *, EXPAT_BASE_NAME, 59, Expat)
347 #define XML_SetSkippedEntityHandler(___parser, ___handler) \
348 AROS_LC2(void, XML_SetSkippedEntityHandler, \
349 AROS_LCA(XML_Parser, (___parser), A0), \
350 AROS_LCA(XML_SkippedEntityHandler, (___handler), A1), \
351 struct Library *, EXPAT_BASE_NAME, 60, Expat)
353 #define XML_UseForeignDTD(___parser, ___useDTD) \
354 AROS_LC2(int, XML_UseForeignDTD, \
355 AROS_LCA(XML_Parser, (___parser), A0), \
356 AROS_LCA(XML_Bool, (___useDTD), D0), \
357 struct Library *, EXPAT_BASE_NAME, 61, Expat)
359 #define XML_GetFeatureList() \
360 AROS_LC0(const XML_Feature *, XML_GetFeatureList, \
361 struct Library *, EXPAT_BASE_NAME, 62, Expat)
363 #define XML_StopParser(___parser, ___resumable) \
364 AROS_LC2(int, XML_StopParser, \
365 AROS_LCA(XML_Parser, (___parser), A0), \
366 AROS_LCA(XML_Bool, (___resumable), D0), \
367 struct Library *, EXPAT_BASE_NAME, 63, Expat)
369 #define XML_ResumeParser(___parser) \
370 AROS_LC1(int, XML_ResumeParser, \
371 AROS_LCA(XML_Parser, (___parser), A0), \
372 struct Library *, EXPAT_BASE_NAME, 64, Expat)
374 #define XML_GetParsingStatus(___parser, ___status) \
375 AROS_LC2(void, XML_GetParsingStatus, \
376 AROS_LCA(XML_Parser, (___parser), A0), \
377 AROS_LCA(XML_ParsingStatus *, (___status), A1), \
378 struct Library *, EXPAT_BASE_NAME, 65, Expat)
380 #define XML_FreeContentModel(___parser, ___model) \
381 AROS_LC2(void, XML_FreeContentModel, \
382 AROS_LCA(XML_Parser, (___parser), A0), \
383 AROS_LCA(XML_Content *, (___model), A1), \
384 struct Library *, EXPAT_BASE_NAME, 66, Expat)
386 #define XML_MemMalloc(___parser, ___size) \
387 AROS_LC2(void *, XML_MemMalloc, \
388 AROS_LCA(XML_Parser, (___parser), A0), \
389 AROS_LCA(size_t, (___size), D0), \
390 struct Library *, EXPAT_BASE_NAME, 67, Expat)
392 #define XML_MemRealloc(___parser, ___ptr, ___size) \
393 AROS_LC3(void *, XML_MemRealloc, \
394 AROS_LCA(XML_Parser, (___parser), A0), \
395 AROS_LCA(void *, (___ptr), A1), \
396 AROS_LCA(size_t, (___size), D0), \
397 struct Library *, EXPAT_BASE_NAME, 68, Expat)
399 #define XML_MemFree(___parser, ___ptr) \
400 AROS_LC2(void, XML_MemFree, \
401 AROS_LCA(XML_Parser, (___parser), A0), \
402 AROS_LCA(void *, (___ptr), A1), \
403 struct Library *, EXPAT_BASE_NAME, 69, Expat)
405 #endif /* !_INLINE_EXPAT_H */