blob: d6edcae2d5edc270c98ba8d64606ee6eb7411416 [file] [log] [blame]
Daniel Veillard14fff061999-06-22 21:49:07 +00001/*
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
16extern "C" {
17#endif
18
19typedef 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
34typedef xmlParserInputBuffer *xmlParserInputBufferPtr;
35
36#ifdef __cplusplus
37}
38#endif
39
40#endif /* __XML_IO_H__ */