Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 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" |
| 14 | |
| 15 | #ifdef __cplusplus |
| 16 | extern "C" { |
| 17 | #endif |
| 18 | |
| 19 | typedef struct xmlParserInputBuffer { |
| 20 | /* Inputs */ |
| 21 | FILE *file; /* Input on file handler */ |
| 22 | int fd; /* Input on a file descriptor */ |
| 23 | /********** |
| 24 | #ifdef HAVE_ZLIB_H |
| 25 | gzFile gzfile; Input on a compressed stream |
| 26 | #endif |
| 27 | */ |
| 28 | |
| 29 | |
| 30 | xmlBufferPtr buffer; /* Local buffer encoded in UTF-8 */ |
| 31 | |
| 32 | } xmlParserInputBuffer; |
| 33 | |
| 34 | typedef xmlParserInputBuffer *xmlParserInputBufferPtr; |
| 35 | |
| 36 | #ifdef __cplusplus |
| 37 | } |
| 38 | #endif |
| 39 | |
| 40 | #endif /* __XML_IO_H__ */ |