Bunch of updates, progressive parsing, updates on HTML, XPAth and docs, Daniel
diff --git a/xmlIO.h b/xmlIO.h
index d6edcae..bdeecc3 100644
--- a/xmlIO.h
+++ b/xmlIO.h
@@ -11,6 +11,7 @@
#include <stdio.h>
#include "tree.h"
+#include "encoding.h"
#ifdef __cplusplus
extern "C" {
@@ -19,13 +20,10 @@
typedef struct xmlParserInputBuffer {
/* Inputs */
FILE *file; /* Input on file handler */
+ void* gzfile; /* Input on a compressed stream */
int fd; /* Input on a file descriptor */
-/**********
-#ifdef HAVE_ZLIB_H
- gzFile gzfile; Input on a compressed stream
-#endif
- */
+ xmlCharEncodingHandlerPtr encoder; /* I18N conversions to UTF-8 */
xmlBufferPtr buffer; /* Local buffer encoded in UTF-8 */
@@ -33,6 +31,21 @@
typedef xmlParserInputBuffer *xmlParserInputBufferPtr;
+/*
+ * Interfaces
+ */
+
+xmlParserInputBufferPtr xmlParserInputBufferCreateFilename(const char *filename,
+ xmlCharEncoding enc);
+xmlParserInputBufferPtr xmlParserInputBufferCreateFile(FILE *file,
+ xmlCharEncoding enc);
+xmlParserInputBufferPtr xmlParserInputBufferCreateFd(int fd, xmlCharEncoding enc);
+
+int xmlParserInputBufferRead(xmlParserInputBufferPtr in, int len);
+int xmlParserInputBufferGrow(xmlParserInputBufferPtr in, int len);
+
+void xmlFreeParserInputBuffer(xmlParserInputBufferPtr in);
+
#ifdef __cplusplus
}
#endif