mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
Bunch of updates, progressive parsing, updates on HTML, XPAth and docs, Daniel
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include "tree.h"
|
||||
#include "encoding.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -19,13 +20,10 @@ extern "C" {
|
||||
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 struct xmlParserInputBuffer {
|
||||
|
||||
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
|
||||
|
Reference in New Issue
Block a user