File: hslibxml-shim.h

package info (click to toggle)
haskell-libxml-sax 0.7.5-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 140 kB
  • sloc: ansic: 511; haskell: 439; makefile: 2
file content (177 lines) | stat: -rw-r--r-- 4,377 bytes parent folder | download | duplicates (4)
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
#ifndef HSLIBXML_SHIM_H
#define HSLIBXML_SHIM_H

#include <libxml/parser.h>

/* Versions of the error handling callbacks with fixed arity */
typedef void(*FixedErrorFunc)(void *ctx, const char *msg);

xmlParserCtxt *
hslibxml_alloc_parser(const char *filename);

void
hslibxml_free_parser(xmlParserCtxt *ctx);

int
hslibxml_parse_complete(xmlParserCtxt *ctx);

int
hslibxml_want_callback(xmlParserCtxt *ctx, void *cb_ctx);

internalSubsetSAXFunc
hslibxml_getcb_internalSubset(xmlParserCtxt *ctx);

isStandaloneSAXFunc
hslibxml_getcb_isStandalone(xmlParserCtxt *ctx);

hasInternalSubsetSAXFunc
hslibxml_getcb_hasInternalSubset(xmlParserCtxt *ctx);

hasExternalSubsetSAXFunc
hslibxml_getcb_hasExternalSubset(xmlParserCtxt *ctx);

xmlExternalEntityLoader
hslibxml_getcb_resolveEntity(xmlParserCtxt *ctx);

getEntitySAXFunc
hslibxml_getcb_getEntity(xmlParserCtxt *ctx);

entityDeclSAXFunc
hslibxml_getcb_entityDecl(xmlParserCtxt *ctx);

notationDeclSAXFunc
hslibxml_getcb_notationDecl(xmlParserCtxt *ctx);

attributeDeclSAXFunc
hslibxml_getcb_attributeDecl(xmlParserCtxt *ctx);

elementDeclSAXFunc
hslibxml_getcb_elementDecl(xmlParserCtxt *ctx);

unparsedEntityDeclSAXFunc
hslibxml_getcb_unparsedEntityDecl(xmlParserCtxt *ctx);

startDocumentSAXFunc
hslibxml_getcb_startDocument(xmlParserCtxt *ctx);

endDocumentSAXFunc
hslibxml_getcb_endDocument(xmlParserCtxt *ctx);

referenceSAXFunc
hslibxml_getcb_reference(xmlParserCtxt *ctx);

charactersSAXFunc
hslibxml_getcb_characters(xmlParserCtxt *ctx);

ignorableWhitespaceSAXFunc
hslibxml_getcb_ignorableWhitespace(xmlParserCtxt *ctx);

processingInstructionSAXFunc
hslibxml_getcb_processingInstruction(xmlParserCtxt *ctx);

commentSAXFunc
hslibxml_getcb_comment(xmlParserCtxt *ctx);

FixedErrorFunc
hslibxml_getcb_warning(xmlParserCtxt *ctx);

FixedErrorFunc
hslibxml_getcb_error(xmlParserCtxt *ctx);

getParameterEntitySAXFunc
hslibxml_getcb_getParameterEntity(xmlParserCtxt *ctx);

cdataBlockSAXFunc
hslibxml_getcb_cdataBlock(xmlParserCtxt *ctx);

externalSubsetSAXFunc
hslibxml_getcb_externalSubset(xmlParserCtxt *ctx);

startElementNsSAX2Func
hslibxml_getcb_startElementNs(xmlParserCtxt *ctx);

endElementNsSAX2Func
hslibxml_getcb_endElementNs(xmlParserCtxt *ctx);

xmlStructuredErrorFunc
hslibxml_getcb_serror(xmlParserCtxt *ctx);

void
hslibxml_setcb_internalSubset(xmlParserCtxt *ctx, internalSubsetSAXFunc cb);

void
hslibxml_setcb_isStandalone(xmlParserCtxt *ctx, isStandaloneSAXFunc cb);

void
hslibxml_setcb_hasInternalSubset(xmlParserCtxt *ctx, hasInternalSubsetSAXFunc cb);

void
hslibxml_setcb_hasExternalSubset(xmlParserCtxt *ctx, hasExternalSubsetSAXFunc cb);

void
hslibxml_setcb_resolveEntity(xmlParserCtxt *ctx, xmlExternalEntityLoader cb);

void
hslibxml_setcb_getEntity(xmlParserCtxt *ctx, getEntitySAXFunc cb);

void
hslibxml_setcb_entityDecl(xmlParserCtxt *ctx, entityDeclSAXFunc cb);

void
hslibxml_setcb_notationDecl(xmlParserCtxt *ctx, notationDeclSAXFunc cb);

void
hslibxml_setcb_attributeDecl(xmlParserCtxt *ctx, attributeDeclSAXFunc cb);

void
hslibxml_setcb_elementDecl(xmlParserCtxt *ctx, elementDeclSAXFunc cb);

void
hslibxml_setcb_unparsedEntityDecl(xmlParserCtxt *ctx, unparsedEntityDeclSAXFunc cb);

void
hslibxml_setcb_startDocument(xmlParserCtxt *ctx, startDocumentSAXFunc cb);

void
hslibxml_setcb_endDocument(xmlParserCtxt *ctx, endDocumentSAXFunc cb);

void
hslibxml_setcb_reference(xmlParserCtxt *ctx, referenceSAXFunc cb);

void
hslibxml_setcb_characters(xmlParserCtxt *ctx, charactersSAXFunc cb);

void
hslibxml_setcb_ignorableWhitespace(xmlParserCtxt *ctx, ignorableWhitespaceSAXFunc cb);

void
hslibxml_setcb_processingInstruction(xmlParserCtxt *ctx, processingInstructionSAXFunc cb);

void
hslibxml_setcb_comment(xmlParserCtxt *ctx, commentSAXFunc cb);

void
hslibxml_setcb_warning(xmlParserCtxt *ctx, FixedErrorFunc cb);

void
hslibxml_setcb_error(xmlParserCtxt *ctx, FixedErrorFunc cb);

void
hslibxml_setcb_getParameterEntity(xmlParserCtxt *ctx, getParameterEntitySAXFunc cb);

void
hslibxml_setcb_cdataBlock(xmlParserCtxt *ctx, cdataBlockSAXFunc cb);

void
hslibxml_setcb_externalSubset(xmlParserCtxt *ctx, externalSubsetSAXFunc cb);

void
hslibxml_setcb_startElementNs(xmlParserCtxt *ctx, startElementNsSAX2Func cb);

void
hslibxml_setcb_endElementNs(xmlParserCtxt *ctx, endElementNsSAX2Func cb);

void
hslibxml_setcb_serror(xmlParserCtxt *ctx, xmlStructuredErrorFunc cb);

#endif