updated libxml2 to 2.5.10
[TestXSLT.git] / libxml2 / include / libxml / xmlschemastypes.h
1 /*
2  * schemastypes.c : interface of the XML Schema Datatypes
3  *             definition and validity checking
4  *
5  * See Copyright for the status of this software.
6  *
7  * Daniel Veillard <veillard@redhat.com>
8  */
9
10
11 #ifndef __XML_SCHEMA_TYPES_H__
12 #define __XML_SCHEMA_TYPES_H__
13
14 #include <libxml/xmlversion.h>
15
16 #ifdef LIBXML_SCHEMAS_ENABLED
17
18 #include <libxml/schemasInternals.h>
19 #include <libxml/xmlschemas.h>
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24
25 void            xmlSchemaInitTypes              (void);
26 void            xmlSchemaCleanupTypes           (void);
27 xmlSchemaTypePtr xmlSchemaGetPredefinedType     (const xmlChar *name,
28                                                  const xmlChar *ns);
29 int             xmlSchemaValidatePredefinedType (xmlSchemaTypePtr type,
30                                                  const xmlChar *value,
31                                                  xmlSchemaValPtr *val);
32 int             xmlSchemaValPredefTypeNode      (xmlSchemaTypePtr type,
33                                                  const xmlChar *value,
34                                                  xmlSchemaValPtr *val,
35                                                  xmlNodePtr node);
36 int             xmlSchemaValidateFacet          (xmlSchemaTypePtr base,
37                                                  xmlSchemaFacetPtr facet,
38                                                  const xmlChar *value,
39                                                  xmlSchemaValPtr val);
40 void            xmlSchemaFreeValue              (xmlSchemaValPtr val);
41 xmlSchemaFacetPtr xmlSchemaNewFacet             (void);
42 int             xmlSchemaCheckFacet             (xmlSchemaFacetPtr facet,
43                                                  xmlSchemaTypePtr typeDecl,
44                                                  xmlSchemaParserCtxtPtr ctxt,
45                                                  const xmlChar *name);
46 void            xmlSchemaFreeFacet              (xmlSchemaFacetPtr facet);
47 int             xmlSchemaCompareValues          (xmlSchemaValPtr x,
48                                                  xmlSchemaValPtr y);
49
50 #ifdef __cplusplus
51 }
52 #endif
53
54 #endif /* LIBXML_SCHEMAS_ENABLED */
55 #endif /* __XML_SCHEMA_TYPES_H__ */