/ lib / lxml / includes / xinclude.pxd
xinclude.pxd
 1  from lxml.includes.tree cimport xmlDoc, xmlNode
 2  
 3  cdef extern from "libxml/xinclude.h":
 4  
 5      ctypedef struct xmlXIncludeCtxt
 6  
 7      cdef int xmlXIncludeProcess(xmlDoc* doc) nogil
 8      cdef int xmlXIncludeProcessFlags(xmlDoc* doc, int parser_opts) nogil
 9      cdef int xmlXIncludeProcessTree(xmlNode* doc) nogil
10      cdef int xmlXIncludeProcessTreeFlags(xmlNode* doc, int parser_opts) nogil
11  
12      # libxml2 >= 2.7.4
13      cdef int xmlXIncludeProcessTreeFlagsData(
14              xmlNode* doc, int parser_opts, void* data) nogil
15  
16      cdef xmlXIncludeCtxt* xmlXIncludeNewContext(xmlDoc* doc) nogil
17      cdef int xmlXIncludeProcessNode(xmlXIncludeCtxt* ctxt, xmlNode* node) nogil
18      cdef int xmlXIncludeSetFlags(xmlXIncludeCtxt* ctxt, int flags) nogil
19  
20      # libxml2 >= 2.6.27
21      cdef int xmlXIncludeProcessFlagsData(
22          xmlDoc* doc, int flags, void* data) nogil