You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
852 B

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