14 #include <libxml/xmlversion.h>
34 typedef int (XMLCALL *xmlInputMatchCallback) (
char const *filename);
43 typedef void * (XMLCALL *xmlInputOpenCallback) (
char const *filename);
54 typedef int (XMLCALL *xmlInputReadCallback) (
void * context,
char * buffer,
int len);
63 typedef int (XMLCALL *xmlInputCloseCallback) (
void * context);
65 #ifdef LIBXML_OUTPUT_ENABLED
80 typedef int (XMLCALL *xmlOutputMatchCallback) (
char const *filename);
89 typedef void * (XMLCALL *xmlOutputOpenCallback) (
char const *filename);
100 typedef int (XMLCALL *xmlOutputWriteCallback) (
void * context,
const char * buffer,
110 typedef int (XMLCALL *xmlOutputCloseCallback) (
void * context);
117 #include <libxml/globals.h>
118 #include <libxml/tree.h>
119 #include <libxml/parser.h>
120 #include <libxml/encoding.h>
125 struct _xmlParserInputBuffer {
127 xmlInputReadCallback readcallback;
128 xmlInputCloseCallback closecallback;
130 xmlCharEncodingHandlerPtr encoder;
136 unsigned long rawconsumed;
140 #ifdef LIBXML_OUTPUT_ENABLED
141 struct _xmlOutputBuffer {
143 xmlOutputWriteCallback writecallback;
144 xmlOutputCloseCallback closecallback;
146 xmlCharEncodingHandlerPtr encoder;
158 XMLPUBFUN
void XMLCALL
159 xmlCleanupInputCallbacks (
void);
161 XMLPUBFUN
int XMLCALL
162 xmlPopInputCallbacks (
void);
164 XMLPUBFUN
void XMLCALL
165 xmlRegisterDefaultInputCallbacks (
void);
166 XMLPUBFUN xmlParserInputBufferPtr XMLCALL
167 xmlAllocParserInputBuffer (xmlCharEncoding enc);
169 XMLPUBFUN xmlParserInputBufferPtr XMLCALL
170 xmlParserInputBufferCreateFilename (
const char *URI,
171 xmlCharEncoding enc);
172 XMLPUBFUN xmlParserInputBufferPtr XMLCALL
173 xmlParserInputBufferCreateFile (FILE *file,
174 xmlCharEncoding enc);
175 XMLPUBFUN xmlParserInputBufferPtr XMLCALL
176 xmlParserInputBufferCreateFd (
int fd,
177 xmlCharEncoding enc);
178 XMLPUBFUN xmlParserInputBufferPtr XMLCALL
179 xmlParserInputBufferCreateMem (
const char *mem,
int size,
180 xmlCharEncoding enc);
181 XMLPUBFUN xmlParserInputBufferPtr XMLCALL
182 xmlParserInputBufferCreateStatic (
const char *mem,
int size,
183 xmlCharEncoding enc);
184 XMLPUBFUN xmlParserInputBufferPtr XMLCALL
185 xmlParserInputBufferCreateIO (xmlInputReadCallback ioread,
186 xmlInputCloseCallback ioclose,
188 xmlCharEncoding enc);
189 XMLPUBFUN
int XMLCALL
190 xmlParserInputBufferRead (xmlParserInputBufferPtr in,
192 XMLPUBFUN
int XMLCALL
193 xmlParserInputBufferGrow (xmlParserInputBufferPtr in,
195 XMLPUBFUN
int XMLCALL
196 xmlParserInputBufferPush (xmlParserInputBufferPtr in,
199 XMLPUBFUN
void XMLCALL
200 xmlFreeParserInputBuffer (xmlParserInputBufferPtr in);
201 XMLPUBFUN
char * XMLCALL
202 xmlParserGetDirectory (
const char *filename);
204 XMLPUBFUN
int XMLCALL
205 xmlRegisterInputCallbacks (xmlInputMatchCallback matchFunc,
206 xmlInputOpenCallback openFunc,
207 xmlInputReadCallback readFunc,
208 xmlInputCloseCallback closeFunc);
210 xmlParserInputBufferPtr
211 __xmlParserInputBufferCreateFilename(
const char *URI,
212 xmlCharEncoding enc);
214 #ifdef LIBXML_OUTPUT_ENABLED
218 XMLPUBFUN
void XMLCALL
219 xmlCleanupOutputCallbacks (
void);
220 XMLPUBFUN
void XMLCALL
221 xmlRegisterDefaultOutputCallbacks(
void);
222 XMLPUBFUN xmlOutputBufferPtr XMLCALL
223 xmlAllocOutputBuffer (xmlCharEncodingHandlerPtr encoder);
225 XMLPUBFUN xmlOutputBufferPtr XMLCALL
226 xmlOutputBufferCreateFilename (
const char *URI,
227 xmlCharEncodingHandlerPtr encoder,
230 XMLPUBFUN xmlOutputBufferPtr XMLCALL
231 xmlOutputBufferCreateFile (FILE *file,
232 xmlCharEncodingHandlerPtr encoder);
234 XMLPUBFUN xmlOutputBufferPtr XMLCALL
235 xmlOutputBufferCreateBuffer (xmlBufferPtr buffer,
236 xmlCharEncodingHandlerPtr encoder);
238 XMLPUBFUN xmlOutputBufferPtr XMLCALL
239 xmlOutputBufferCreateFd (
int fd,
240 xmlCharEncodingHandlerPtr encoder);
242 XMLPUBFUN xmlOutputBufferPtr XMLCALL
243 xmlOutputBufferCreateIO (xmlOutputWriteCallback iowrite,
244 xmlOutputCloseCallback ioclose,
246 xmlCharEncodingHandlerPtr encoder);
248 XMLPUBFUN
int XMLCALL
249 xmlOutputBufferWrite (xmlOutputBufferPtr out,
252 XMLPUBFUN
int XMLCALL
253 xmlOutputBufferWriteString (xmlOutputBufferPtr out,
255 XMLPUBFUN
int XMLCALL
256 xmlOutputBufferWriteEscape (xmlOutputBufferPtr out,
258 xmlCharEncodingOutputFunc escaping);
260 XMLPUBFUN
int XMLCALL
261 xmlOutputBufferFlush (xmlOutputBufferPtr out);
262 XMLPUBFUN
int XMLCALL
263 xmlOutputBufferClose (xmlOutputBufferPtr out);
265 XMLPUBFUN
int XMLCALL
266 xmlRegisterOutputCallbacks (xmlOutputMatchCallback matchFunc,
267 xmlOutputOpenCallback openFunc,
268 xmlOutputWriteCallback writeFunc,
269 xmlOutputCloseCallback closeFunc);
272 __xmlOutputBufferCreateFilename(
const char *URI,
273 xmlCharEncodingHandlerPtr encoder,
276 #ifdef LIBXML_HTTP_ENABLED
278 XMLPUBFUN
void XMLCALL
279 xmlRegisterHTTPPostCallbacks (
void );
284 XMLPUBFUN xmlParserInputPtr XMLCALL
286 xmlParserInputPtr ret);
291 XMLPUBFUN xmlParserInputPtr XMLCALL
292 xmlNoNetExternalEntityLoader (
const char *URL,
300 XMLPUBFUN xmlChar * XMLCALL
301 xmlNormalizeWindowsPath (
const xmlChar *path);
303 XMLPUBFUN
int XMLCALL
304 xmlCheckFilename (
const char *path);
308 XMLPUBFUN
int XMLCALL
309 xmlFileMatch (
const char *filename);
310 XMLPUBFUN
void * XMLCALL
311 xmlFileOpen (
const char *filename);
312 XMLPUBFUN
int XMLCALL
313 xmlFileRead (
void * context,
316 XMLPUBFUN
int XMLCALL
317 xmlFileClose (
void * context);
322 #ifdef LIBXML_HTTP_ENABLED
323 XMLPUBFUN
int XMLCALL
324 xmlIOHTTPMatch (
const char *filename);
325 XMLPUBFUN
void * XMLCALL
326 xmlIOHTTPOpen (
const char *filename);
327 #ifdef LIBXML_OUTPUT_ENABLED
328 XMLPUBFUN
void * XMLCALL
329 xmlIOHTTPOpenW (
const char * post_uri,
332 XMLPUBFUN
int XMLCALL
333 xmlIOHTTPRead (
void * context,
336 XMLPUBFUN
int XMLCALL
337 xmlIOHTTPClose (
void * context);
343 #ifdef LIBXML_FTP_ENABLED
344 XMLPUBFUN
int XMLCALL
345 xmlIOFTPMatch (
const char *filename);
346 XMLPUBFUN
void * XMLCALL
347 xmlIOFTPOpen (
const char *filename);
348 XMLPUBFUN
int XMLCALL
349 xmlIOFTPRead (
void * context,
352 XMLPUBFUN
int XMLCALL
353 xmlIOFTPClose (
void * context);