Spaces:
Runtime error
Runtime error
| /* | |
| * 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 XMLCALL xmlInitGlobals(void); | |
| XML_DEPRECATED | |
| XMLPUBFUN void XMLCALL 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 | |
| XMLCALL xmlParserInputBufferCreateFilenameDefault (xmlParserInputBufferCreateFilenameFunc func); | |
| XMLPUBFUN xmlOutputBufferCreateFilenameFunc | |
| XMLCALL 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 XMLCALL xmlInitializeGlobalState(xmlGlobalStatePtr gs); | |
| XMLPUBFUN void XMLCALL xmlThrDefSetGenericErrorFunc(void *ctx, xmlGenericErrorFunc handler); | |
| XMLPUBFUN void XMLCALL xmlThrDefSetStructuredErrorFunc(void *ctx, xmlStructuredErrorFunc handler); | |
| XMLPUBFUN xmlRegisterNodeFunc XMLCALL xmlRegisterNodeDefault(xmlRegisterNodeFunc func); | |
| XMLPUBFUN xmlRegisterNodeFunc XMLCALL xmlThrDefRegisterNodeDefault(xmlRegisterNodeFunc func); | |
| XMLPUBFUN xmlDeregisterNodeFunc XMLCALL xmlDeregisterNodeDefault(xmlDeregisterNodeFunc func); | |
| XMLPUBFUN xmlDeregisterNodeFunc XMLCALL xmlThrDefDeregisterNodeDefault(xmlDeregisterNodeFunc func); | |
| XMLPUBFUN xmlOutputBufferCreateFilenameFunc XMLCALL | |
| xmlThrDefOutputBufferCreateFilenameDefault(xmlOutputBufferCreateFilenameFunc func); | |
| XMLPUBFUN xmlParserInputBufferCreateFilenameFunc XMLCALL | |
| xmlThrDefParserInputBufferCreateFilenameDefault( | |
| xmlParserInputBufferCreateFilenameFunc func); | |
| /** DOC_DISABLE */ | |
| /* | |
| * 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 | |
| */ | |
| XMLPUBFUN xmlMallocFunc * XMLCALL __xmlMalloc(void); | |
| XMLPUBVAR xmlMallocFunc xmlMalloc; | |
| XMLPUBFUN xmlMallocFunc * XMLCALL __xmlMallocAtomic(void); | |
| XMLPUBVAR xmlMallocFunc xmlMallocAtomic; | |
| XMLPUBFUN xmlReallocFunc * XMLCALL __xmlRealloc(void); | |
| XMLPUBVAR xmlReallocFunc xmlRealloc; | |
| XMLPUBFUN xmlFreeFunc * XMLCALL __xmlFree(void); | |
| XMLPUBVAR xmlFreeFunc xmlFree; | |
| XMLPUBFUN xmlStrdupFunc * XMLCALL __xmlMemStrdup(void); | |
| XMLPUBVAR xmlStrdupFunc xmlMemStrdup; | |
| XMLPUBVAR xmlMallocFunc xmlMalloc; | |
| XMLPUBVAR xmlMallocFunc xmlMallocAtomic; | |
| XMLPUBVAR xmlReallocFunc xmlRealloc; | |
| XMLPUBVAR xmlFreeFunc xmlFree; | |
| XMLPUBVAR xmlStrdupFunc xmlMemStrdup; | |
| XMLPUBFUN xmlSAXHandlerV1 * XMLCALL __htmlDefaultSAXHandler(void); | |
| XMLPUBVAR xmlSAXHandlerV1 htmlDefaultSAXHandler; | |
| XMLPUBFUN xmlError * XMLCALL __xmlLastError(void); | |
| XMLPUBVAR xmlError xmlLastError; | |
| /* | |
| * Everything starting from the line below is | |
| * Automatically generated by build_glob.py. | |
| * Do not modify the previous line. | |
| */ | |
| XMLPUBFUN int * XMLCALL __oldXMLWDcompatibility(void); | |
| XMLPUBVAR int oldXMLWDcompatibility; | |
| XMLPUBFUN xmlBufferAllocationScheme * XMLCALL __xmlBufferAllocScheme(void); | |
| XMLPUBVAR xmlBufferAllocationScheme xmlBufferAllocScheme; | |
| XMLPUBFUN xmlBufferAllocationScheme XMLCALL | |
| xmlThrDefBufferAllocScheme(xmlBufferAllocationScheme v); | |
| XMLPUBFUN int * XMLCALL __xmlDefaultBufferSize(void); | |
| XMLPUBVAR int xmlDefaultBufferSize; | |
| XMLPUBFUN int XMLCALL xmlThrDefDefaultBufferSize(int v); | |
| XMLPUBFUN xmlSAXHandlerV1 * XMLCALL __xmlDefaultSAXHandler(void); | |
| XMLPUBVAR xmlSAXHandlerV1 xmlDefaultSAXHandler; | |
| XMLPUBFUN xmlSAXLocator * XMLCALL __xmlDefaultSAXLocator(void); | |
| XMLPUBVAR xmlSAXLocator xmlDefaultSAXLocator; | |
| XMLPUBFUN int * XMLCALL __xmlDoValidityCheckingDefaultValue(void); | |
| XMLPUBVAR int xmlDoValidityCheckingDefaultValue; | |
| XMLPUBFUN int XMLCALL xmlThrDefDoValidityCheckingDefaultValue(int v); | |
| XMLPUBFUN xmlGenericErrorFunc * XMLCALL __xmlGenericError(void); | |
| XMLPUBVAR xmlGenericErrorFunc xmlGenericError; | |
| XMLPUBFUN xmlStructuredErrorFunc * XMLCALL __xmlStructuredError(void); | |
| XMLPUBVAR xmlStructuredErrorFunc xmlStructuredError; | |
| XMLPUBFUN void * * XMLCALL __xmlGenericErrorContext(void); | |
| XMLPUBVAR void * xmlGenericErrorContext; | |
| XMLPUBFUN void * * XMLCALL __xmlStructuredErrorContext(void); | |
| XMLPUBVAR void * xmlStructuredErrorContext; | |
| XMLPUBFUN int * XMLCALL __xmlGetWarningsDefaultValue(void); | |
| XMLPUBVAR int xmlGetWarningsDefaultValue; | |
| XMLPUBFUN int XMLCALL xmlThrDefGetWarningsDefaultValue(int v); | |
| XMLPUBFUN int * XMLCALL __xmlIndentTreeOutput(void); | |
| XMLPUBVAR int xmlIndentTreeOutput; | |
| XMLPUBFUN int XMLCALL xmlThrDefIndentTreeOutput(int v); | |
| XMLPUBFUN const char * * XMLCALL __xmlTreeIndentString(void); | |
| XMLPUBVAR const char * xmlTreeIndentString; | |
| XMLPUBFUN const char * XMLCALL xmlThrDefTreeIndentString(const char * v); | |
| XMLPUBFUN int * XMLCALL __xmlKeepBlanksDefaultValue(void); | |
| XMLPUBVAR int xmlKeepBlanksDefaultValue; | |
| XMLPUBFUN int XMLCALL xmlThrDefKeepBlanksDefaultValue(int v); | |
| XMLPUBFUN int * XMLCALL __xmlLineNumbersDefaultValue(void); | |
| XMLPUBVAR int xmlLineNumbersDefaultValue; | |
| XMLPUBFUN int XMLCALL xmlThrDefLineNumbersDefaultValue(int v); | |
| XMLPUBFUN int * XMLCALL __xmlLoadExtDtdDefaultValue(void); | |
| XMLPUBVAR int xmlLoadExtDtdDefaultValue; | |
| XMLPUBFUN int XMLCALL xmlThrDefLoadExtDtdDefaultValue(int v); | |
| XMLPUBFUN int * XMLCALL __xmlParserDebugEntities(void); | |
| XMLPUBVAR int xmlParserDebugEntities; | |
| XMLPUBFUN int XMLCALL xmlThrDefParserDebugEntities(int v); | |
| XMLPUBFUN const char * * XMLCALL __xmlParserVersion(void); | |
| XMLPUBVAR const char * xmlParserVersion; | |
| XMLPUBFUN int * XMLCALL __xmlPedanticParserDefaultValue(void); | |
| XMLPUBVAR int xmlPedanticParserDefaultValue; | |
| XMLPUBFUN int XMLCALL xmlThrDefPedanticParserDefaultValue(int v); | |
| XMLPUBFUN int * XMLCALL __xmlSaveNoEmptyTags(void); | |
| XMLPUBVAR int xmlSaveNoEmptyTags; | |
| XMLPUBFUN int XMLCALL xmlThrDefSaveNoEmptyTags(int v); | |
| XMLPUBFUN int * XMLCALL __xmlSubstituteEntitiesDefaultValue(void); | |
| XMLPUBVAR int xmlSubstituteEntitiesDefaultValue; | |
| XMLPUBFUN int XMLCALL xmlThrDefSubstituteEntitiesDefaultValue(int v); | |
| XMLPUBFUN xmlRegisterNodeFunc * XMLCALL __xmlRegisterNodeDefaultValue(void); | |
| XMLPUBVAR xmlRegisterNodeFunc xmlRegisterNodeDefaultValue; | |
| XMLPUBFUN xmlDeregisterNodeFunc * XMLCALL __xmlDeregisterNodeDefaultValue(void); | |
| XMLPUBVAR xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue; | |
| XMLPUBFUN xmlParserInputBufferCreateFilenameFunc * XMLCALL \ | |
| __xmlParserInputBufferCreateFilenameValue(void); | |
| XMLPUBVAR xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValue; | |
| XMLPUBFUN xmlOutputBufferCreateFilenameFunc * XMLCALL __xmlOutputBufferCreateFilenameValue(void); | |
| XMLPUBVAR xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValue; | |
| } | |