Download include/libxml2/libxml/globals.h from camenduru/slahmr-test: direct link, hf CLI and curl.
- Browser
- Download file 14.4 kB
-
https://huggingface.co/camenduru/slahmr-test/resolve/main/include/libxml2/libxml/globals.h
- Command line
-
hf download hf://camenduru/slahmr-test/include/libxml2/libxml/globals.h
-
curl -L -o globals.h https://huggingface.co/camenduru/slahmr-test/resolve/main/include/libxml2/libxml/globals.h
14.4 kB
| /* | |
| * Summary: interface for all global variables of the library | |
| * Description: all the global variables and thread handling for | |
| * those variables is handled by this module. | |
| * | |
| * The bottom of this file is automatically generated by build_glob.py | |
| * based on the description file global.data | |
| * | |
| * Copy: See Copyright for the status of this software. | |
| * | |
| * Author: Gary Pennington <Gary.Pennington@uk.sun.com>, Daniel Veillard | |
| */ | |
| extern "C" { | |
| XML_DEPRECATED | |
| XMLPUBFUN void xmlInitGlobals(void); | |
| XML_DEPRECATED | |
| XMLPUBFUN void xmlCleanupGlobals(void); | |
| /** | |
| * xmlParserInputBufferCreateFilenameFunc: | |
| * @URI: the URI to read from | |
| * @enc: the requested source encoding | |
| * | |
| * Signature for the function doing the lookup for a suitable input method | |
| * corresponding to an URI. | |
| * | |
| * Returns the new xmlParserInputBufferPtr in case of success or NULL if no | |
| * method was found. | |
| */ | |
| typedef xmlParserInputBufferPtr (*xmlParserInputBufferCreateFilenameFunc) (const char *URI, | |
| xmlCharEncoding enc); | |
| /** | |
| * xmlOutputBufferCreateFilenameFunc: | |
| * @URI: the URI to write to | |
| * @enc: the requested target encoding | |
| * | |
| * Signature for the function doing the lookup for a suitable output method | |
| * corresponding to an URI. | |
| * | |
| * Returns the new xmlOutputBufferPtr in case of success or NULL if no | |
| * method was found. | |
| */ | |
| typedef xmlOutputBufferPtr (*xmlOutputBufferCreateFilenameFunc) (const char *URI, | |
| xmlCharEncodingHandlerPtr encoder, | |
| int compression); | |
| XMLPUBFUN xmlParserInputBufferCreateFilenameFunc | |
| xmlParserInputBufferCreateFilenameDefault (xmlParserInputBufferCreateFilenameFunc func); | |
| XMLPUBFUN xmlOutputBufferCreateFilenameFunc | |
| xmlOutputBufferCreateFilenameDefault (xmlOutputBufferCreateFilenameFunc func); | |
| /* | |
| * Externally global symbols which need to be protected for backwards | |
| * compatibility support. | |
| */ | |
| /** | |
| * xmlRegisterNodeFunc: | |
| * @node: the current node | |
| * | |
| * Signature for the registration callback of a created node | |
| */ | |
| typedef void (*xmlRegisterNodeFunc) (xmlNodePtr node); | |
| /** | |
| * xmlDeregisterNodeFunc: | |
| * @node: the current node | |
| * | |
| * Signature for the deregistration callback of a discarded node | |
| */ | |
| typedef void (*xmlDeregisterNodeFunc) (xmlNodePtr node); | |
| typedef struct _xmlGlobalState xmlGlobalState; | |
| typedef xmlGlobalState *xmlGlobalStatePtr; | |
| struct _xmlGlobalState | |
| { | |
| const char *xmlParserVersion; | |
| xmlSAXLocator xmlDefaultSAXLocator; | |
| xmlSAXHandlerV1 xmlDefaultSAXHandler; | |
| xmlSAXHandlerV1 docbDefaultSAXHandler; /* unused */ | |
| xmlSAXHandlerV1 htmlDefaultSAXHandler; | |
| xmlFreeFunc xmlFree; | |
| xmlMallocFunc xmlMalloc; | |
| xmlStrdupFunc xmlMemStrdup; | |
| xmlReallocFunc xmlRealloc; | |
| xmlGenericErrorFunc xmlGenericError; | |
| xmlStructuredErrorFunc xmlStructuredError; | |
| void *xmlGenericErrorContext; | |
| int oldXMLWDcompatibility; | |
| xmlBufferAllocationScheme xmlBufferAllocScheme; | |
| int xmlDefaultBufferSize; | |
| int xmlSubstituteEntitiesDefaultValue; | |
| int xmlDoValidityCheckingDefaultValue; | |
| int xmlGetWarningsDefaultValue; | |
| int xmlKeepBlanksDefaultValue; | |
| int xmlLineNumbersDefaultValue; | |
| int xmlLoadExtDtdDefaultValue; | |
| int xmlParserDebugEntities; | |
| int xmlPedanticParserDefaultValue; | |
| int xmlSaveNoEmptyTags; | |
| int xmlIndentTreeOutput; | |
| const char *xmlTreeIndentString; | |
| xmlRegisterNodeFunc xmlRegisterNodeDefaultValue; | |
| xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue; | |
| xmlMallocFunc xmlMallocAtomic; | |
| xmlError xmlLastError; | |
| xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValue; | |
| xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValue; | |
| void *xmlStructuredErrorContext; | |
| }; | |
| } | |
| extern "C" { | |
| XMLPUBFUN void xmlInitializeGlobalState(xmlGlobalStatePtr gs); | |
| XMLPUBFUN void xmlThrDefSetGenericErrorFunc(void *ctx, xmlGenericErrorFunc handler); | |
| XMLPUBFUN void xmlThrDefSetStructuredErrorFunc(void *ctx, xmlStructuredErrorFunc handler); | |
| XMLPUBFUN xmlRegisterNodeFunc xmlRegisterNodeDefault(xmlRegisterNodeFunc func); | |
| XMLPUBFUN xmlRegisterNodeFunc xmlThrDefRegisterNodeDefault(xmlRegisterNodeFunc func); | |
| XMLPUBFUN xmlDeregisterNodeFunc xmlDeregisterNodeDefault(xmlDeregisterNodeFunc func); | |
| XMLPUBFUN xmlDeregisterNodeFunc xmlThrDefDeregisterNodeDefault(xmlDeregisterNodeFunc func); | |
| XMLPUBFUN xmlOutputBufferCreateFilenameFunc | |
| xmlThrDefOutputBufferCreateFilenameDefault(xmlOutputBufferCreateFilenameFunc func); | |
| XMLPUBFUN xmlParserInputBufferCreateFilenameFunc | |
| xmlThrDefParserInputBufferCreateFilenameDefault( | |
| xmlParserInputBufferCreateFilenameFunc func); | |
| /* | |
| * In general the memory allocation entry points are not kept | |
| * thread specific but this can be overridden by LIBXML_THREAD_ALLOC_ENABLED | |
| * - xmlMalloc | |
| * - xmlMallocAtomic | |
| * - xmlRealloc | |
| * - xmlMemStrdup | |
| * - xmlFree | |
| */ | |
| /** DOC_DISABLE */ | |
| XMLPUBFUN xmlMallocFunc * __xmlMalloc(void); | |
| XMLPUBVAR xmlMallocFunc xmlMalloc; | |
| XMLPUBFUN xmlMallocFunc * __xmlMallocAtomic(void); | |
| XMLPUBVAR xmlMallocFunc xmlMallocAtomic; | |
| XMLPUBFUN xmlReallocFunc * __xmlRealloc(void); | |
| XMLPUBVAR xmlReallocFunc xmlRealloc; | |
| XMLPUBFUN xmlFreeFunc * __xmlFree(void); | |
| XMLPUBVAR xmlFreeFunc xmlFree; | |
| XMLPUBFUN xmlStrdupFunc * __xmlMemStrdup(void); | |
| XMLPUBVAR xmlStrdupFunc xmlMemStrdup; | |
| /** DOC_ENABLE */ | |
| XMLPUBVAR xmlMallocFunc xmlMalloc; | |
| XMLPUBVAR xmlMallocFunc xmlMallocAtomic; | |
| XMLPUBVAR xmlReallocFunc xmlRealloc; | |
| XMLPUBVAR xmlFreeFunc xmlFree; | |
| XMLPUBVAR xmlStrdupFunc xmlMemStrdup; | |
| XML_DEPRECATED | |
| XMLPUBFUN xmlSAXHandlerV1 * __htmlDefaultSAXHandler(void); | |
| XML_DEPRECATED | |
| XMLPUBVAR xmlSAXHandlerV1 htmlDefaultSAXHandler; | |
| XMLPUBFUN xmlError * __xmlLastError(void); | |
| XMLPUBVAR xmlError xmlLastError; | |
| /* | |
| * Everything starting from the line below is | |
| * Automatically generated by build_glob.py. | |
| * Do not modify the previous line. | |
| */ | |
| XML_DEPRECATED | |
| XMLPUBFUN int * __oldXMLWDcompatibility(void); | |
| XML_DEPRECATED | |
| XMLPUBVAR int oldXMLWDcompatibility; | |
| XML_DEPRECATED | |
| XMLPUBFUN xmlBufferAllocationScheme * __xmlBufferAllocScheme(void); | |
| XML_DEPRECATED | |
| XMLPUBVAR xmlBufferAllocationScheme xmlBufferAllocScheme; | |
| XML_DEPRECATED | |
| XMLPUBFUN xmlBufferAllocationScheme | |
| xmlThrDefBufferAllocScheme(xmlBufferAllocationScheme v); | |
| XML_DEPRECATED | |
| XMLPUBFUN int * __xmlDefaultBufferSize(void); | |
| XML_DEPRECATED | |
| XMLPUBVAR int xmlDefaultBufferSize; | |
| XML_DEPRECATED | |
| XMLPUBFUN int xmlThrDefDefaultBufferSize(int v); | |
| XML_DEPRECATED | |
| XMLPUBFUN xmlSAXHandlerV1 * __xmlDefaultSAXHandler(void); | |
| XML_DEPRECATED | |
| XMLPUBVAR xmlSAXHandlerV1 xmlDefaultSAXHandler; | |
| XML_DEPRECATED | |
| XMLPUBFUN xmlSAXLocator * __xmlDefaultSAXLocator(void); | |
| XML_DEPRECATED | |
| XMLPUBVAR xmlSAXLocator xmlDefaultSAXLocator; | |
| XMLPUBFUN int * __xmlDoValidityCheckingDefaultValue(void); | |
| XMLPUBVAR int xmlDoValidityCheckingDefaultValue; | |
| XMLPUBFUN int xmlThrDefDoValidityCheckingDefaultValue(int v); | |
| XMLPUBFUN xmlGenericErrorFunc * __xmlGenericError(void); | |
| XMLPUBVAR xmlGenericErrorFunc xmlGenericError; | |
| XMLPUBFUN xmlStructuredErrorFunc * __xmlStructuredError(void); | |
| XMLPUBVAR xmlStructuredErrorFunc xmlStructuredError; | |
| XMLPUBFUN void * * __xmlGenericErrorContext(void); | |
| XMLPUBVAR void * xmlGenericErrorContext; | |
| XMLPUBFUN void * * __xmlStructuredErrorContext(void); | |
| XMLPUBVAR void * xmlStructuredErrorContext; | |
| XMLPUBFUN int * __xmlGetWarningsDefaultValue(void); | |
| XMLPUBVAR int xmlGetWarningsDefaultValue; | |
| XMLPUBFUN int xmlThrDefGetWarningsDefaultValue(int v); | |
| XMLPUBFUN int * __xmlIndentTreeOutput(void); | |
| XMLPUBVAR int xmlIndentTreeOutput; | |
| XMLPUBFUN int xmlThrDefIndentTreeOutput(int v); | |
| XMLPUBFUN const char * * __xmlTreeIndentString(void); | |
| XMLPUBVAR const char * xmlTreeIndentString; | |
| XMLPUBFUN const char * xmlThrDefTreeIndentString(const char * v); | |
| XMLPUBFUN int * __xmlKeepBlanksDefaultValue(void); | |
| XMLPUBVAR int xmlKeepBlanksDefaultValue; | |
| XMLPUBFUN int xmlThrDefKeepBlanksDefaultValue(int v); | |
| XML_DEPRECATED | |
| XMLPUBFUN int * __xmlLineNumbersDefaultValue(void); | |
| XML_DEPRECATED | |
| XMLPUBVAR int xmlLineNumbersDefaultValue; | |
| XML_DEPRECATED | |
| XMLPUBFUN int xmlThrDefLineNumbersDefaultValue(int v); | |
| XMLPUBFUN int * __xmlLoadExtDtdDefaultValue(void); | |
| XMLPUBVAR int xmlLoadExtDtdDefaultValue; | |
| XMLPUBFUN int xmlThrDefLoadExtDtdDefaultValue(int v); | |
| XMLPUBFUN int * __xmlParserDebugEntities(void); | |
| XMLPUBVAR int xmlParserDebugEntities; | |
| XMLPUBFUN int xmlThrDefParserDebugEntities(int v); | |
| XMLPUBFUN const char * * __xmlParserVersion(void); | |
| XMLPUBVAR const char * xmlParserVersion; | |
| XML_DEPRECATED | |
| XMLPUBFUN int * __xmlPedanticParserDefaultValue(void); | |
| XML_DEPRECATED | |
| XMLPUBVAR int xmlPedanticParserDefaultValue; | |
| XML_DEPRECATED | |
| XMLPUBFUN int xmlThrDefPedanticParserDefaultValue(int v); | |
| XMLPUBFUN int * __xmlSaveNoEmptyTags(void); | |
| XMLPUBVAR int xmlSaveNoEmptyTags; | |
| XMLPUBFUN int xmlThrDefSaveNoEmptyTags(int v); | |
| XMLPUBFUN int * __xmlSubstituteEntitiesDefaultValue(void); | |
| XMLPUBVAR int xmlSubstituteEntitiesDefaultValue; | |
| XMLPUBFUN int xmlThrDefSubstituteEntitiesDefaultValue(int v); | |
| XML_DEPRECATED | |
| XMLPUBFUN xmlRegisterNodeFunc * __xmlRegisterNodeDefaultValue(void); | |
| XML_DEPRECATED | |
| XMLPUBVAR xmlRegisterNodeFunc xmlRegisterNodeDefaultValue; | |
| XML_DEPRECATED | |
| XMLPUBFUN xmlDeregisterNodeFunc * __xmlDeregisterNodeDefaultValue(void); | |
| XML_DEPRECATED | |
| XMLPUBVAR xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue; | |
| XML_DEPRECATED | |
| XMLPUBFUN xmlParserInputBufferCreateFilenameFunc * \ | |
| __xmlParserInputBufferCreateFilenameValue(void); | |
| XML_DEPRECATED | |
| XMLPUBVAR xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValue; | |
| XML_DEPRECATED | |
| XMLPUBFUN xmlOutputBufferCreateFilenameFunc * __xmlOutputBufferCreateFilenameValue(void); | |
| XML_DEPRECATED | |
| XMLPUBVAR xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValue; | |
| } | |