diff options
Diffstat (limited to 'include/libxml/parser.h')
| -rw-r--r-- | include/libxml/parser.h | 55 |
1 files changed, 51 insertions, 4 deletions
diff --git a/include/libxml/parser.h b/include/libxml/parser.h index 7203ca3..2fe91d4 100644 --- a/include/libxml/parser.h +++ b/include/libxml/parser.h @@ -591,7 +591,7 @@ typedef void (*cdataBlockSAXFunc) ( * * Display and format a warning messages, callback. */ -typedef void (*warningSAXFunc) (void *ctx, +typedef void (XMLCDECL *warningSAXFunc) (void *ctx, const char *msg, ...); /** * errorSAXFunc: @@ -601,7 +601,7 @@ typedef void (*warningSAXFunc) (void *ctx, * * Display and format an error messages, callback. */ -typedef void (*errorSAXFunc) (void *ctx, +typedef void (XMLCDECL *errorSAXFunc) (void *ctx, const char *msg, ...); /** * fatalErrorSAXFunc: @@ -613,7 +613,7 @@ typedef void (*errorSAXFunc) (void *ctx, * Note: so far fatalError() SAX callbacks are not used, error() * get all the callbacks for errors. */ -typedef void (*fatalErrorSAXFunc) (void *ctx, +typedef void (XMLCDECL *fatalErrorSAXFunc) (void *ctx, const char *msg, ...); /** * isStandaloneSAXFunc: @@ -1088,7 +1088,8 @@ typedef enum { XML_PARSE_NODICT = 1<<12,/* Do not reuse the context dictionnary */ XML_PARSE_NSCLEAN = 1<<13,/* remove redundant namespaces declarations */ XML_PARSE_NOCDATA = 1<<14,/* merge CDATA as text nodes */ - XML_PARSE_NOXINCNODE= 1<<15 /* do not generate XINCLUDE START/END nodes */ + XML_PARSE_NOXINCNODE= 1<<15,/* do not generate XINCLUDE START/END nodes */ + XML_PARSE_COMPACT = 1<<16 /* compact small text nodes */ } xmlParserOption; XMLPUBFUN void XMLCALL @@ -1162,6 +1163,52 @@ XMLPUBFUN xmlDocPtr XMLCALL const char *encoding, int options); +/* + * Library wide options + */ +/** + * xmlFeature: + * + * Used to examine the existance of features that can be enabled + * or disabled at compile-time. + */ +typedef enum { + XML_FEATURE_THREAD = 1, + XML_FEATURE_TREE = 2, + XML_FEATURE_OUTPUT = 3, + XML_FEATURE_PUSH = 4, + XML_FEATURE_READER = 5, + XML_FEATURE_PATTERN = 6, + XML_FEATURE_WRITER = 7, + XML_FEATURE_SAX1 = 8, + XML_FEATURE_FTP = 9, + XML_FEATURE_HTTP = 10, + XML_FEATURE_VALID = 11, + XML_FEATURE_HTML = 12, + XML_FEATURE_LEGACY = 13, + XML_FEATURE_C14N = 14, + XML_FEATURE_CATALOG = 15, + XML_FEATURE_XPATH = 16, + XML_FEATURE_XPTR = 17, + XML_FEATURE_XINCLUDE = 18, + XML_FEATURE_ICONV = 19, + XML_FEATURE_ISO8859X = 20, + XML_FEATURE_UNICODE = 21, + XML_FEATURE_REGEXP = 22, + XML_FEATURE_AUTOMATA = 23, + XML_FEATURE_EXPR = 24, + XML_FEATURE_SCHEMAS = 25, + XML_FEATURE_SCHEMATRON = 26, + XML_FEATURE_MODULES = 27, + XML_FEATURE_DEBUG = 28, + XML_FEATURE_DEBUG_MEM = 29, + XML_FEATURE_DEBUG_RUN = 30, + XML_FEATURE_NONE = 99999 /* just to be sure of allocation size */ +} xmlFeature; + +XMLPUBFUN int XMLCALL + xmlHasFeature (xmlFeature feature); + #ifdef __cplusplus } #endif |
