diff options
author | Mike Hommey <glandium@debian.org> | 2005-03-27 13:13:58 +0000 |
---|---|---|
committer | Mike Hommey <glandium@debian.org> | 2005-03-27 13:13:58 +0000 |
commit | 50e5b428562964b1eb2f876370058b34b47c5e90 (patch) | |
tree | c66bcae6dbbce07128ee881353ff60090524462c /include/libxml | |
parent | a7457388701e6ccba9091ba3ec09505dc903b758 (diff) | |
download | libxml2-50e5b428562964b1eb2f876370058b34b47c5e90.tar.gz |
Load /tmp/tmp.XJZ6qc/libxml2-2.6.18 intoupstream/2.6.18
packages/libxml2/branches/upstream/current.
Diffstat (limited to 'include/libxml')
-rw-r--r-- | include/libxml/Makefile.in | 2 | ||||
-rw-r--r-- | include/libxml/dict.h | 7 | ||||
-rw-r--r-- | include/libxml/hash.h | 11 | ||||
-rw-r--r-- | include/libxml/pattern.h | 24 | ||||
-rw-r--r-- | include/libxml/schemasInternals.h | 11 | ||||
-rw-r--r-- | include/libxml/valid.h | 12 | ||||
-rw-r--r-- | include/libxml/xmlerror.h | 5 | ||||
-rw-r--r-- | include/libxml/xmlreader.h | 7 | ||||
-rw-r--r-- | include/libxml/xmlschemastypes.h | 24 | ||||
-rw-r--r-- | include/libxml/xmlversion.h | 10 |
10 files changed, 105 insertions, 8 deletions
diff --git a/include/libxml/Makefile.in b/include/libxml/Makefile.in index 460f9c0..e08683a 100644 --- a/include/libxml/Makefile.in +++ b/include/libxml/Makefile.in @@ -136,7 +136,6 @@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ -PATTERN_TEST = @PATTERN_TEST@ PERL = @PERL@ PYTHON = @PYTHON@ PYTHON_INCLUDES = @PYTHON_INCLUDES@ @@ -159,6 +158,7 @@ TEST_CATALOG = @TEST_CATALOG@ TEST_DEBUG = @TEST_DEBUG@ TEST_HTML = @TEST_HTML@ TEST_MODULES = @TEST_MODULES@ +TEST_PATTERN = @TEST_PATTERN@ TEST_PHTML = @TEST_PHTML@ TEST_PUSH = @TEST_PUSH@ TEST_REGEXPS = @TEST_REGEXPS@ diff --git a/include/libxml/dict.h b/include/libxml/dict.h index 6bf25fb..abb8339 100644 --- a/include/libxml/dict.h +++ b/include/libxml/dict.h @@ -56,6 +56,13 @@ XMLPUBFUN int XMLCALL const xmlChar *str); XMLPUBFUN int XMLCALL xmlDictSize (xmlDictPtr dict); + +/* + * Cleanup function + */ +XMLPUBFUN void XMLCALL + xmlDictCleanup (void); + #ifdef __cplusplus } #endif diff --git a/include/libxml/hash.h b/include/libxml/hash.h index b2f7b41..7fe4be7 100644 --- a/include/libxml/hash.h +++ b/include/libxml/hash.h @@ -27,6 +27,7 @@ typedef xmlHashTable *xmlHashTablePtr; #include <libxml/xmlversion.h> #include <libxml/parser.h> +#include <libxml/dict.h> #ifdef __cplusplus extern "C" { @@ -47,8 +48,13 @@ extern "C" { * function pointer without encountering a warning from * gcc * + * #define XML_CAST_FPTR(fptr) (*(void **)(&fptr)) + * This macro violated ISO C aliasing rules (gcc4 on s390 broke) + * so it is disabled now */ -#define XML_CAST_FPTR(fptr) (*(void **)(&fptr)) + +#define XML_CAST_FPTR(fptr) fptr + /* * function types: @@ -99,6 +105,9 @@ typedef void (*xmlHashScannerFull)(void *payload, void *data, */ XMLPUBFUN xmlHashTablePtr XMLCALL xmlHashCreate (int size); +XMLPUBFUN xmlHashTablePtr XMLCALL + xmlHashCreateDict(int size, + xmlDictPtr dict); XMLPUBFUN void XMLCALL xmlHashFree (xmlHashTablePtr table, xmlHashDeallocator f); diff --git a/include/libxml/pattern.h b/include/libxml/pattern.h index 02c833b..f801a37 100644 --- a/include/libxml/pattern.h +++ b/include/libxml/pattern.h @@ -44,6 +44,30 @@ XMLPUBFUN int XMLCALL xmlPatternMatch (xmlPatternPtr comp, xmlNodePtr node); +/* streaming interfaces */ +typedef struct _xmlStreamCtxt xmlStreamCtxt; +typedef xmlStreamCtxt *xmlStreamCtxtPtr; + +XMLPUBFUN int XMLCALL + xmlPatternStreamable (xmlPatternPtr comp); +XMLPUBFUN int XMLCALL + xmlPatternMaxDepth (xmlPatternPtr comp); +XMLPUBFUN int XMLCALL + xmlPatternFromRoot (xmlPatternPtr comp); +XMLPUBFUN xmlStreamCtxtPtr XMLCALL + xmlPatternGetStreamCtxt (xmlPatternPtr comp); +XMLPUBFUN void XMLCALL + xmlFreeStreamCtxt (xmlStreamCtxtPtr stream); +XMLPUBFUN int XMLCALL + xmlStreamPush (xmlStreamCtxtPtr stream, + const xmlChar *name, + const xmlChar *ns); +XMLPUBFUN int XMLCALL + xmlStreamPushAttr (xmlStreamCtxtPtr stream, + const xmlChar *name, + const xmlChar *ns); +XMLPUBFUN int XMLCALL + xmlStreamPop (xmlStreamCtxtPtr stream); #ifdef __cplusplus } #endif diff --git a/include/libxml/schemasInternals.h b/include/libxml/schemasInternals.h index e4eeba6..0cd8053 100644 --- a/include/libxml/schemasInternals.h +++ b/include/libxml/schemasInternals.h @@ -99,6 +99,9 @@ typedef enum { XML_SCHEMA_TYPE_LIST, XML_SCHEMA_TYPE_UNION, XML_SCHEMA_TYPE_ANY_ATTRIBUTE, + XML_SCHEMA_TYPE_IDC_UNIQUE, + XML_SCHEMA_TYPE_IDC_KEY, + XML_SCHEMA_TYPE_IDC_KEYREF, XML_SCHEMA_FACET_MININCLUSIVE = 1000, XML_SCHEMA_FACET_MINEXCLUSIVE, XML_SCHEMA_FACET_MAXINCLUSIVE, @@ -498,6 +501,12 @@ struct _xmlSchemaFacetLink { * the simple/complexType is abstract. */ #define XML_SCHEMAS_TYPE_ABSTRACT 1 << 20 +/** + * XML_SCHEMAS_TYPE_FACETSNEEDVALUE: + * + * indicates if the facets need a computed value + */ +#define XML_SCHEMAS_TYPE_FACETSNEEDVALUE 1 << 21 /** * _xmlSchemaType: @@ -680,6 +689,7 @@ struct _xmlSchemaElement { xmlSchemaContentType contentType; const xmlChar *refPrefix; xmlSchemaValPtr defVal; + void *idcs; }; /* @@ -824,6 +834,7 @@ struct _xmlSchema { void *includes; /* the includes, this is opaque for now */ int preserve; /* whether to free the document */ int counter; /* used to give ononymous components unique names */ + xmlHashTablePtr idcDef; }; XMLPUBFUN void XMLCALL xmlSchemaFreeType (xmlSchemaTypePtr type); diff --git a/include/libxml/valid.h b/include/libxml/valid.h index 858dee9..2e0ec3d 100644 --- a/include/libxml/valid.h +++ b/include/libxml/valid.h @@ -172,6 +172,7 @@ XMLPUBFUN void XMLCALL #endif /* LIBXML_OUTPUT_ENABLED */ /* Element Content */ +/* the non Doc version are being deprecated */ XMLPUBFUN xmlElementContentPtr XMLCALL xmlNewElementContent (const xmlChar *name, xmlElementContentType type); @@ -179,6 +180,17 @@ XMLPUBFUN xmlElementContentPtr XMLCALL xmlCopyElementContent (xmlElementContentPtr content); XMLPUBFUN void XMLCALL xmlFreeElementContent (xmlElementContentPtr cur); +/* the new versions with doc argument */ +XMLPUBFUN xmlElementContentPtr XMLCALL + xmlNewDocElementContent (xmlDocPtr doc, + const xmlChar *name, + xmlElementContentType type); +XMLPUBFUN xmlElementContentPtr XMLCALL + xmlCopyDocElementContent(xmlDocPtr doc, + xmlElementContentPtr content); +XMLPUBFUN void XMLCALL + xmlFreeDocElementContent(xmlDocPtr doc, + xmlElementContentPtr cur); XMLPUBFUN void XMLCALL xmlSnprintfElementContent(char *buf, int size, diff --git a/include/libxml/xmlerror.h b/include/libxml/xmlerror.h index 7a5df69..df883e5 100644 --- a/include/libxml/xmlerror.h +++ b/include/libxml/xmlerror.h @@ -44,7 +44,7 @@ typedef enum { XML_FROM_OUTPUT, /* The serialization code */ XML_FROM_IO, /* The Input/Output stack */ XML_FROM_FTP, /* The FTP module */ - XML_FROM_HTTP, /* The FTP module */ + XML_FROM_HTTP, /* The HTTP module */ XML_FROM_XINCLUDE, /* The XInclude processing */ XML_FROM_XPATH, /* The XPath module */ XML_FROM_XPOINTER, /* The XPointer module */ @@ -653,6 +653,8 @@ typedef enum { XML_SCHEMAV_CVC_AU, /* 1874 */ XML_SCHEMAV_CVC_TYPE_1, /* 1875 */ XML_SCHEMAV_CVC_TYPE_2, /* 1876 */ + XML_SCHEMAV_CVC_IDC, /* 1877 */ + XML_SCHEMAV_CVC_WILDCARD, /* 1878 */ XML_XPTR_UNKNOWN_SCHEME = 1900, XML_XPTR_CHILDSEQ_START, /* 1901 */ XML_XPTR_EVAL_FAILED, /* 1902 */ @@ -664,6 +666,7 @@ typedef enum { XML_FTP_PASV_ANSWER = 2000, XML_FTP_EPSV_ANSWER, /* 2001 */ XML_FTP_ACCNT, /* 2002 */ + XML_FTP_URL_SYNTAX, /* 2003 */ XML_HTTP_URL_SYNTAX = 2020, XML_HTTP_USE_IP, /* 2021 */ XML_HTTP_UNKNOWN_HOST, /* 2022 */ diff --git a/include/libxml/xmlreader.h b/include/libxml/xmlreader.h index 6c4c447..803f8e3 100644 --- a/include/libxml/xmlreader.h +++ b/include/libxml/xmlreader.h @@ -281,6 +281,13 @@ XMLPUBFUN const xmlChar * XMLCALL XMLPUBFUN int XMLCALL xmlTextReaderStandalone (xmlTextReaderPtr reader); + +/* + * Index lookup + */ +XMLPUBFUN long XMLCALL + xmlTextReaderByteConsumed (xmlTextReaderPtr reader); + /* * New more complete APIs for simpler creation and reuse of readers */ diff --git a/include/libxml/xmlschemastypes.h b/include/libxml/xmlschemastypes.h index 86010c0..004386f 100644 --- a/include/libxml/xmlschemastypes.h +++ b/include/libxml/xmlschemastypes.h @@ -23,6 +23,13 @@ extern "C" { #endif +typedef enum { + XML_SCHEMA_WHITESPACE_UNKNOWN = 0, + XML_SCHEMA_WHITESPACE_PRESERVE = 1, + XML_SCHEMA_WHITESPACE_REPLACE = 2, + XML_SCHEMA_WHITESPACE_COLLAPSE = 3 +} xmlSchemaWhitespaceValueType; + XMLPUBFUN void XMLCALL xmlSchemaInitTypes (void); XMLPUBFUN void XMLCALL @@ -87,6 +94,23 @@ XMLPUBFUN int XMLCALL const xmlChar *value, xmlSchemaValPtr *val, xmlNodePtr node); +XMLPUBFUN int XMLCALL + xmlSchemaGetCanonValue (xmlSchemaValPtr val, + const xmlChar **retValue); +XMLPUBFUN xmlSchemaValPtr XMLCALL + xmlSchemaNewStringValue (xmlSchemaValType type, + const xmlChar *value); +XMLPUBFUN xmlSchemaValPtr XMLCALL + xmlSchemaNewNOTATIONValue (const xmlChar *name, + const xmlChar *ns); + +XMLPUBFUN int XMLCALL + xmlSchemaCompareValuesWhtsp (xmlSchemaValPtr x, + xmlSchemaWhitespaceValueType xws, + xmlSchemaValPtr y, + xmlSchemaWhitespaceValueType yws); +XMLPUBFUN xmlSchemaValPtr XMLCALL + xmlSchemaCopyValue (xmlSchemaValPtr val); #ifdef __cplusplus } diff --git a/include/libxml/xmlversion.h b/include/libxml/xmlversion.h index 76a9e29..357910e 100644 --- a/include/libxml/xmlversion.h +++ b/include/libxml/xmlversion.h @@ -29,28 +29,28 @@ XMLPUBFUN void XMLCALL xmlCheckVersion(int version); * * the version string like "1.2.3" */ -#define LIBXML_DOTTED_VERSION "2.6.17" +#define LIBXML_DOTTED_VERSION "2.6.18" /** * LIBXML_VERSION: * * the version number: 1.2.3 value is 1002003 */ -#define LIBXML_VERSION 20617 +#define LIBXML_VERSION 20618 /** * LIBXML_VERSION_STRING: * * the version number string, 1.2.3 value is "1002003" */ -#define LIBXML_VERSION_STRING "20617" +#define LIBXML_VERSION_STRING "20618" /** * LIBXML_VERSION_EXTRA: * * extra version information, used to show a CVS compilation */ -#define LIBXML_VERSION_EXTRA "-CVS2309" +#define LIBXML_VERSION_EXTRA "-CVS2374" /** * LIBXML_TEST_VERSION: @@ -58,7 +58,7 @@ XMLPUBFUN void XMLCALL xmlCheckVersion(int version); * Macro to check that the libxml version in use is compatible with * the version the software has been compiled against */ -#define LIBXML_TEST_VERSION xmlCheckVersion(20617); +#define LIBXML_TEST_VERSION xmlCheckVersion(20618); #ifndef VMS #if 0 |