Upload Tizen:Base source
[toolchains/python-lxml.git] / src / lxml / xmlschema.pxd
1 from xmlparser cimport xmlSAXHandler
2 from tree cimport xmlDoc
3
4 cdef extern from "libxml/xmlschemas.h":
5     ctypedef struct xmlSchema
6     ctypedef struct xmlSchemaParserCtxt
7
8     ctypedef struct xmlSchemaSAXPlugStruct
9     ctypedef struct xmlSchemaValidCtxt
10
11     ctypedef enum xmlSchemaValidOption:
12         XML_SCHEMA_VAL_VC_I_CREATE = 1
13
14     cdef xmlSchemaValidCtxt* xmlSchemaNewValidCtxt(xmlSchema* schema) nogil
15     cdef int xmlSchemaValidateDoc(xmlSchemaValidCtxt* ctxt, xmlDoc* doc) nogil
16     cdef xmlSchema* xmlSchemaParse(xmlSchemaParserCtxt* ctxt) nogil
17     cdef xmlSchemaParserCtxt* xmlSchemaNewParserCtxt(char* URL) nogil
18     cdef xmlSchemaParserCtxt* xmlSchemaNewDocParserCtxt(xmlDoc* doc) nogil
19     cdef void xmlSchemaFree(xmlSchema* schema) nogil
20     cdef void xmlSchemaFreeParserCtxt(xmlSchemaParserCtxt* ctxt) nogil
21     cdef void xmlSchemaFreeValidCtxt(xmlSchemaValidCtxt* ctxt) nogil
22     cdef int xmlSchemaSetValidOptions(xmlSchemaValidCtxt* ctxt,
23                                       int options) nogil
24
25     cdef xmlSchemaSAXPlugStruct* xmlSchemaSAXPlug(xmlSchemaValidCtxt* ctxt,
26                                                   xmlSAXHandler** sax,
27                                                   void** data) nogil
28     cdef int xmlSchemaSAXUnplug(xmlSchemaSAXPlugStruct* sax_plug)
29     cdef int xmlSchemaIsValid(xmlSchemaValidCtxt* ctxt)