Annotation of XML/xmlIO.h, revision 1.10
1.1 daniel 1: /*
2: * xmlIO.h : interface for the I/O interfaces used by the parser
3: *
4: * See Copyright for the status of this software.
5: *
6: * Daniel.Veillard@w3.org
7: */
8:
9: #ifndef __XML_IO_H__
10: #define __XML_IO_H__
11:
12: #include <stdio.h>
13: #include "tree.h"
1.5 daniel 14: #include "parser.h"
1.2 daniel 15: #include "encoding.h"
1.1 daniel 16:
17: #ifdef __cplusplus
18: extern "C" {
19: #endif
20:
1.10 ! daniel 21: typedef struct _xmlParserInputBuffer xmlParserInputBuffer;
! 22: typedef xmlParserInputBuffer *xmlParserInputBufferPtr;
! 23: struct _xmlParserInputBuffer {
1.1 daniel 24: /* Inputs */
25: FILE *file; /* Input on file handler */
1.2 daniel 26: void* gzfile; /* Input on a compressed stream */
1.1 daniel 27: int fd; /* Input on a file descriptor */
1.6 daniel 28: void *netIO; /* Input from a network stream */
1.1 daniel 29:
1.2 daniel 30: xmlCharEncodingHandlerPtr encoder; /* I18N conversions to UTF-8 */
1.1 daniel 31:
32: xmlBufferPtr buffer; /* Local buffer encoded in UTF-8 */
33:
1.10 ! daniel 34: };
1.1 daniel 35:
1.2 daniel 36:
37: /*
38: * Interfaces
39: */
40:
1.5 daniel 41: xmlParserInputBufferPtr
1.9 daniel 42: xmlAllocParserInputBuffer (xmlCharEncoding enc);
43:
44: xmlParserInputBufferPtr
1.5 daniel 45: xmlParserInputBufferCreateFilename (const char *filename,
46: xmlCharEncoding enc);
47: xmlParserInputBufferPtr
48: xmlParserInputBufferCreateFile (FILE *file,
49: xmlCharEncoding enc);
50: xmlParserInputBufferPtr
51: xmlParserInputBufferCreateFd (int fd,
52: xmlCharEncoding enc);
53: int xmlParserInputBufferRead (xmlParserInputBufferPtr in,
54: int len);
55: int xmlParserInputBufferGrow (xmlParserInputBufferPtr in,
56: int len);
1.7 daniel 57: int xmlParserInputBufferPush (xmlParserInputBufferPtr in,
58: int len,
1.8 daniel 59: const char *buf);
1.5 daniel 60: void xmlFreeParserInputBuffer (xmlParserInputBufferPtr in);
61: char * xmlParserGetDirectory (const char *filename);
1.1 daniel 62:
63: #ifdef __cplusplus
64: }
65: #endif
66:
67: #endif /* __XML_IO_H__ */
Webmaster