mirror of
https://github.com/darlinghq/darling-libxml2.git
synced 2025-03-02 16:15:32 +00:00
41 lines
760 B
C
41 lines
760 B
C
/*
|
|
* xmlIO.h : interface for the I/O interfaces used by the parser
|
|
*
|
|
* See Copyright for the status of this software.
|
|
*
|
|
* Daniel.Veillard@w3.org
|
|
*/
|
|
|
|
#ifndef __XML_IO_H__
|
|
#define __XML_IO_H__
|
|
|
|
#include <stdio.h>
|
|
#include "tree.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct xmlParserInputBuffer {
|
|
/* Inputs */
|
|
FILE *file; /* Input on file handler */
|
|
int fd; /* Input on a file descriptor */
|
|
/**********
|
|
#ifdef HAVE_ZLIB_H
|
|
gzFile gzfile; Input on a compressed stream
|
|
#endif
|
|
*/
|
|
|
|
|
|
xmlBufferPtr buffer; /* Local buffer encoded in UTF-8 */
|
|
|
|
} xmlParserInputBuffer;
|
|
|
|
typedef xmlParserInputBuffer *xmlParserInputBufferPtr;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __XML_IO_H__ */
|