Download python/libxml_wrap.h from AryaWu/libxml: direct link, hf CLI and curl.
- Browser
- Download file 9.55 kB
-
https://huggingface.co/AryaWu/libxml/resolve/main/python/libxml_wrap.h
- Command line
-
hf download hf://AryaWu/libxml/python/libxml_wrap.h
-
curl -L -o libxml_wrap.h https://huggingface.co/AryaWu/libxml/resolve/main/python/libxml_wrap.h
9.55 kB
| /* | |
| * for older versions of Python, we don't use PyBytes, but keep PyString | |
| * and don't use Capsule but CObjects | |
| */ | |
| /** | |
| * ATTRIBUTE_UNUSED: | |
| * | |
| * Macro used to signal to GCC unused function parameters | |
| * Repeated here since the definition is not available when | |
| * compiled outside the libxml2 build tree. | |
| */ | |
| /* | |
| * Macros to ignore deprecation warnings | |
| */ | |
| typedef struct { | |
| PyObject_HEAD | |
| xmlNodePtr obj; | |
| } PyxmlNode_Object; | |
| typedef struct { | |
| PyObject_HEAD | |
| xmlXPathContextPtr obj; | |
| } PyxmlXPathContext_Object; | |
| typedef struct { | |
| PyObject_HEAD | |
| xmlXPathParserContextPtr obj; | |
| } PyxmlXPathParserContext_Object; | |
| typedef struct { | |
| PyObject_HEAD | |
| xmlParserCtxtPtr obj; | |
| } PyparserCtxt_Object; | |
| typedef struct { | |
| PyObject_HEAD | |
| xmlValidCtxtPtr obj; | |
| } PyValidCtxt_Object; | |
| typedef struct { | |
| PyObject_HEAD | |
| xmlCatalogPtr obj; | |
| } Pycatalog_Object; | |
| typedef struct { | |
| PyObject_HEAD | |
| xmlRegexpPtr obj; | |
| } PyxmlReg_Object; | |
| typedef struct { | |
| PyObject_HEAD | |
| xmlTextReaderPtr obj; | |
| } PyxmlTextReader_Object; | |
| typedef struct { | |
| PyObject_HEAD | |
| xmlTextReaderLocatorPtr obj; | |
| } PyxmlTextReaderLocator_Object; | |
| typedef struct { | |
| PyObject_HEAD | |
| xmlErrorPtr obj; | |
| } PyError_Object; | |
| typedef struct { | |
| PyObject_HEAD | |
| xmlOutputBufferPtr obj; | |
| } PyoutputBuffer_Object; | |
| typedef struct { | |
| PyObject_HEAD | |
| xmlParserInputBufferPtr obj; | |
| } PyinputBuffer_Object; | |
| typedef struct { | |
| PyObject_HEAD | |
| xmlURIPtr obj; | |
| } PyURI_Object; | |
| /* FILE * have their own internal representation */ | |
| FILE *libxml_PyFileGet(PyObject *f); | |
| void libxml_PyFileRelease(FILE *f); | |
| typedef struct { | |
| PyObject_HEAD | |
| xmlRelaxNGPtr obj; | |
| } PyrelaxNgSchema_Object; | |
| typedef struct { | |
| PyObject_HEAD | |
| xmlRelaxNGParserCtxtPtr obj; | |
| } PyrelaxNgParserCtxt_Object; | |
| typedef struct { | |
| PyObject_HEAD | |
| xmlRelaxNGValidCtxtPtr obj; | |
| } PyrelaxNgValidCtxt_Object; | |
| typedef struct { | |
| PyObject_HEAD | |
| xmlSchemaPtr obj; | |
| } PySchema_Object; | |
| typedef struct { | |
| PyObject_HEAD | |
| xmlSchemaParserCtxtPtr obj; | |
| } PySchemaParserCtxt_Object; | |
| typedef struct { | |
| PyObject_HEAD | |
| xmlSchemaValidCtxtPtr obj; | |
| } PySchemaValidCtxt_Object; | |
| PyObject * libxml_intWrap(int val); | |
| PyObject * libxml_longWrap(long val); | |
| PyObject * libxml_xmlCharPtrWrap(xmlChar *str); | |
| PyObject * libxml_constxmlCharPtrWrap(const xmlChar *str); | |
| PyObject * libxml_charPtrWrap(char *str); | |
| PyObject * libxml_constcharPtrWrap(const char *str); | |
| PyObject * libxml_charPtrConstWrap(const char *str); | |
| PyObject * libxml_xmlCharPtrConstWrap(const xmlChar *str); | |
| PyObject * libxml_xmlDocPtrWrap(xmlDocPtr doc); | |
| PyObject * libxml_xmlNodePtrWrap(xmlNodePtr node); | |
| PyObject * libxml_xmlAttrPtrWrap(xmlAttrPtr attr); | |
| PyObject * libxml_xmlNsPtrWrap(xmlNsPtr ns); | |
| PyObject * libxml_xmlAttributePtrWrap(xmlAttributePtr ns); | |
| PyObject * libxml_xmlElementPtrWrap(xmlElementPtr ns); | |
| PyObject * libxml_doubleWrap(double val); | |
| PyObject * libxml_xmlParserCtxtPtrWrap(xmlParserCtxtPtr ctxt); | |
| PyObject * libxml_xmlXPathContextPtrWrap(xmlXPathContextPtr ctxt); | |
| PyObject * libxml_xmlXPathParserContextPtrWrap(xmlXPathParserContextPtr ctxt); | |
| PyObject * libxml_xmlXPathObjectPtrWrap(xmlXPathObjectPtr obj); | |
| xmlXPathObjectPtr libxml_xmlXPathObjectPtrConvert(PyObject * obj); | |
| PyObject * libxml_xmlValidCtxtPtrWrap(xmlValidCtxtPtr valid); | |
| PyObject * libxml_xmlCatalogPtrWrap(xmlCatalogPtr obj); | |
| PyObject * libxml_xmlURIPtrWrap(xmlURIPtr uri); | |
| PyObject * libxml_xmlOutputBufferPtrWrap(xmlOutputBufferPtr buffer); | |
| PyObject * libxml_xmlParserInputBufferPtrWrap(xmlParserInputBufferPtr buffer); | |
| PyObject * libxml_xmlRegexpPtrWrap(xmlRegexpPtr regexp); | |
| PyObject * libxml_xmlTextReaderPtrWrap(xmlTextReaderPtr reader); | |
| PyObject * libxml_xmlTextReaderLocatorPtrWrap(xmlTextReaderLocatorPtr locator); | |
| PyObject * libxml_xmlRelaxNGPtrWrap(xmlRelaxNGPtr ctxt); | |
| PyObject * libxml_xmlRelaxNGParserCtxtPtrWrap(xmlRelaxNGParserCtxtPtr ctxt); | |
| PyObject * libxml_xmlRelaxNGValidCtxtPtrWrap(xmlRelaxNGValidCtxtPtr valid); | |
| PyObject * libxml_xmlSchemaPtrWrap(xmlSchemaPtr ctxt); | |
| PyObject * libxml_xmlSchemaParserCtxtPtrWrap(xmlSchemaParserCtxtPtr ctxt); | |
| PyObject * libxml_xmlSchemaValidCtxtPtrWrap(xmlSchemaValidCtxtPtr valid); | |
| PyObject * libxml_xmlErrorPtrWrap(const xmlError *error); | |
| PyObject * libxml_xmlSchemaSetValidErrors(PyObject * self, PyObject * args); | |
| PyObject * libxml_xmlRegisterInputCallback(PyObject *self, PyObject *args); | |
| PyObject * libxml_xmlUnregisterInputCallback(PyObject *self, PyObject *args); | |
| PyObject * libxml_xmlNodeRemoveNsDef(PyObject * self, PyObject * args); | |
| int libxml_deprecationWarning(const char *func); | |