2 ** Copyright (c) 2001-2009 Expat maintainers.
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.
27 #ifndef LIBRARIES_EXPAT_H
28 #include <libraries/expat.h>
31 typedef struct M68kXML_ParserStruct
{
33 struct ExecIFace
*IExec
;
35 void *extenthandlerarg
;
37 void *startelementhandler
;
38 void *endelementhandler
;
39 void *chardatahandler
;
40 void *procinsthandler
;
42 void *startcdatahandler
;
43 void *endcdatahandler
;
45 void *defaulthandlerexp
;
46 void *extentrefhandler
;
47 void *unknownenchandler
;
48 void *startnamespacehandler
;
49 void *endnamespacehandler
;
51 void *startdoctypehandler
;
52 void *enddoctypehandler
;
53 void *elementdeclhandler
;
54 void *attlistdeclhandler
;
55 void *entitydeclhandler
;
56 void *unparseddeclhandler
;
57 void *notationdeclhandler
;
58 void *notstandalonehandler
;
59 void *skippedentityhandler
;
62 /* expat_68k_handler_stubs.c */
63 void _68k_startelementhandler(void *userdata
, const char *name
, const char **attrs
);
64 void _68k_endelementhandler(void *userdata
, const char *name
);
65 void _68k_chardatahandler(void *userdata
, const char *s
, int len
);
66 void _68k_procinsthandler(void *userdata
, const char *target
, const char *data
);
67 void _68k_commenthandler(void *userdata
, const char *data
);
68 void _68k_startcdatahandler(void *userdata
);
69 void _68k_endcdatahandler(void *userdata
);
70 void _68k_defaulthandler(void *userdata
, const char *s
, int len
);
71 void _68k_defaulthandlerexp(void *userdata
, const char *s
, int len
);
72 int _68k_extentrefhandler(XML_Parser parser
, const char *context
, const char *base
,
73 const char *sysid
, const char *pubid
);
74 int _68k_unknownenchandler(void *enchandlerdata
, const char *name
, XML_Encoding
*info
);
75 void _68k_startnamespacehandler(void *userdata
, const char *prefix
, const char *uri
);
76 void _68k_endnamespacehandler(void *userdata
, const char *prefix
);
77 void _68k_xmldeclhandler(void *userdata
, const char *version
, const char *encoding
, int standalone
);
78 void _68k_startdoctypehandler(void *userdata
, const char *doctypename
,
79 const char *sysid
, const char *pubid
, int has_internal_subset
);
80 void _68k_enddoctypehandler(void *userdata
);
81 void _68k_elementdeclhandler(void *userdata
, const char *name
, XML_Content
*model
);
82 void _68k_attlistdeclhandler(void *userdata
, const char *elname
, const char *attname
,
83 const char *att_type
, const char *dflt
, int isrequired
);
84 void _68k_entitydeclhandler(void *userdata
, const char *entityname
, int is_param_entity
,
85 const char *value
, int value_length
, const char *base
, const char *sysid
, const char *pubid
,
86 const char *notationname
);
87 void _68k_unparseddeclhandler(void *userdata
, const char *entityname
, const char *base
,
88 const char *sysid
, const char *pubid
, const char *notationname
);
89 void _68k_notationdeclhandler(void *userdata
, const char *notationname
, const char *base
,
90 const char *sysid
, const char *pubid
);
91 int _68k_notstandalonehandler(void *userdata
);
92 void _68k_skippedentityhandler(void *userdata
, const char *entityname
, int is_param_entity
);