deps/src/libxml2-2.9.1/doc/devhelp/libxml2-globals.html
| | | | | libxml2 Reference Manual |
globals - interface for all global variables of the library
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
Author(s): Gary Pennington <[email protected]>, Daniel Veillard
typedef[xmlGlobalState](libxml2-globals.html#xmlGlobalState)*[xmlGlobalStatePtr](#xmlGlobalStatePtr);
typedef struct _xmlGlobalState[xmlGlobalState](#xmlGlobalState);
void[xmlThrDefSetStructuredErrorFunc](#xmlThrDefSetStructuredErrorFunc)(void * ctx,
[xmlStructuredErrorFunc](libxml2-xmlerror.html#xmlStructuredErrorFunc)handler);
void[xmlInitializeGlobalState](#xmlInitializeGlobalState)([xmlGlobalStatePtr](libxml2-globals.html#xmlGlobalStatePtr)gs);[xmlBufferAllocationScheme](libxml2-tree.html#xmlBufferAllocationScheme)[xmlThrDefBufferAllocScheme](#xmlThrDefBufferAllocScheme)([xmlBufferAllocationScheme](libxml2-tree.html#xmlBufferAllocationScheme)v);
int[xmlThrDefPedanticParserDefaultValue](#xmlThrDefPedanticParserDefaultValue)(int v);[xmlRegisterNodeFunc](libxml2-globals.html#xmlRegisterNodeFunc)[xmlRegisterNodeDefault](#xmlRegisterNodeDefault)([xmlRegisterNodeFunc](libxml2-globals.html#xmlRegisterNodeFunc)func);
typedef[xmlParserInputBufferPtr](libxml2-tree.html#xmlParserInputBufferPtr)[xmlParserInputBufferCreateFilenameFunc](#xmlParserInputBufferCreateFilenameFunc)(const char * URI,
[xmlCharEncoding](libxml2-encoding.html#xmlCharEncoding)enc);[xmlOutputBufferCreateFilenameFunc](libxml2-globals.html#xmlOutputBufferCreateFilenameFunc)[xmlThrDefOutputBufferCreateFilenameDefault](#xmlThrDefOutputBufferCreateFilenameDefault)([xmlOutputBufferCreateFilenameFunc](libxml2-globals.html#xmlOutputBufferCreateFilenameFunc)func);[xmlDeregisterNodeFunc](libxml2-globals.html#xmlDeregisterNodeFunc)[xmlDeregisterNodeDefault](#xmlDeregisterNodeDefault)([xmlDeregisterNodeFunc](libxml2-globals.html#xmlDeregisterNodeFunc)func);
int[xmlThrDefDefaultBufferSize](#xmlThrDefDefaultBufferSize)(int v);[xmlOutputBufferCreateFilenameFunc](libxml2-globals.html#xmlOutputBufferCreateFilenameFunc)[xmlOutputBufferCreateFilenameDefault](#xmlOutputBufferCreateFilenameDefault)([xmlOutputBufferCreateFilenameFunc](libxml2-globals.html#xmlOutputBufferCreateFilenameFunc)func);
int[xmlThrDefLoadExtDtdDefaultValue](#xmlThrDefLoadExtDtdDefaultValue)(int v);[xmlRegisterNodeFunc](libxml2-globals.html#xmlRegisterNodeFunc)[xmlThrDefRegisterNodeDefault](#xmlThrDefRegisterNodeDefault)([xmlRegisterNodeFunc](libxml2-globals.html#xmlRegisterNodeFunc)func);
int[xmlThrDefKeepBlanksDefaultValue](#xmlThrDefKeepBlanksDefaultValue)(int v);
typedef void[xmlDeregisterNodeFunc](#xmlDeregisterNodeFunc)([xmlNodePtr](libxml2-tree.html#xmlNodePtr)node);
int[xmlThrDefParserDebugEntities](#xmlThrDefParserDebugEntities)(int v);[xmlParserInputBufferCreateFilenameFunc](libxml2-globals.html#xmlParserInputBufferCreateFilenameFunc)[xmlThrDefParserInputBufferCreateFilenameDefault](#xmlThrDefParserInputBufferCreateFilenameDefault)([xmlParserInputBufferCreateFilenameFunc](libxml2-globals.html#xmlParserInputBufferCreateFilenameFunc)func);
void[xmlThrDefSetGenericErrorFunc](#xmlThrDefSetGenericErrorFunc)(void * ctx,
[xmlGenericErrorFunc](libxml2-xmlerror.html#xmlGenericErrorFunc)handler);[xmlParserInputBufferCreateFilenameFunc](libxml2-globals.html#xmlParserInputBufferCreateFilenameFunc)[xmlParserInputBufferCreateFilenameDefault](#xmlParserInputBufferCreateFilenameDefault)([xmlParserInputBufferCreateFilenameFunc](libxml2-globals.html#xmlParserInputBufferCreateFilenameFunc)func);
int[xmlThrDefDoValidityCheckingDefaultValue](#xmlThrDefDoValidityCheckingDefaultValue)(int v);
void[xmlCleanupGlobals](#xmlCleanupGlobals)(void);
int[xmlThrDefGetWarningsDefaultValue](#xmlThrDefGetWarningsDefaultValue)(int v);[xmlDeregisterNodeFunc](libxml2-globals.html#xmlDeregisterNodeFunc)[xmlThrDefDeregisterNodeDefault](#xmlThrDefDeregisterNodeDefault)([xmlDeregisterNodeFunc](libxml2-globals.html#xmlDeregisterNodeFunc)func);
int[xmlThrDefSubstituteEntitiesDefaultValue](#xmlThrDefSubstituteEntitiesDefaultValue)(int v);
typedef void[xmlRegisterNodeFunc](#xmlRegisterNodeFunc)([xmlNodePtr](libxml2-tree.html#xmlNodePtr)node);
int[xmlThrDefSaveNoEmptyTags](#xmlThrDefSaveNoEmptyTags)(int v);
int[xmlThrDefIndentTreeOutput](#xmlThrDefIndentTreeOutput)(int v);
typedef[xmlOutputBufferPtr](libxml2-tree.html#xmlOutputBufferPtr)[xmlOutputBufferCreateFilenameFunc](#xmlOutputBufferCreateFilenameFunc)(const char * URI,
[xmlCharEncodingHandlerPtr](libxml2-encoding.html#xmlCharEncodingHandlerPtr)encoder,
int compression);
void[xmlInitGlobals](#xmlInitGlobals)(void);
int[xmlThrDefLineNumbersDefaultValue](#xmlThrDefLineNumbersDefaultValue)(int v);
const char *[xmlThrDefTreeIndentString](#xmlThrDefTreeIndentString)(const char * v);
struct _xmlGlobalState {
const char * xmlParserVersion[xmlSAXLocator](libxml2-tree.html#xmlSAXLocator)xmlDefaultSAXLocator[xmlSAXHandlerV1](libxml2-parser.html#xmlSAXHandlerV1)xmlDefaultSAXHandler[xmlSAXHandlerV1](libxml2-parser.html#xmlSAXHandlerV1)docbDefaultSAXHandler[xmlSAXHandlerV1](libxml2-parser.html#xmlSAXHandlerV1)htmlDefaultSAXHandler[xmlFreeFunc](libxml2-xmlmemory.html#xmlFreeFunc)xmlFree[xmlMallocFunc](libxml2-xmlmemory.html#xmlMallocFunc)xmlMalloc[xmlStrdupFunc](libxml2-xmlmemory.html#xmlStrdupFunc)xmlMemStrdup[xmlReallocFunc](libxml2-xmlmemory.html#xmlReallocFunc)xmlRealloc[xmlGenericErrorFunc](libxml2-xmlerror.html#xmlGenericErrorFunc)xmlGenericError[xmlStructuredErrorFunc](libxml2-xmlerror.html#xmlStructuredErrorFunc)xmlStructuredError
void * xmlGenericErrorContext
int oldXMLWDcompatibility[xmlBufferAllocationScheme](libxml2-tree.html#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](libxml2-globals.html#xmlRegisterNodeFunc)xmlRegisterNodeDefaultValue[xmlDeregisterNodeFunc](libxml2-globals.html#xmlDeregisterNodeFunc)xmlDeregisterNodeDefaultValue[xmlMallocFunc](libxml2-xmlmemory.html#xmlMallocFunc)xmlMallocAtomic[xmlError](libxml2-xmlerror.html#xmlError)xmlLastError[xmlParserInputBufferCreateFilenameFunc](libxml2-globals.html#xmlParserInputBufferCreateFilenameFunc)xmlParserInputBufferCreateFilenameValue[xmlOutputBufferCreateFilenameFunc](libxml2-globals.html#xmlOutputBufferCreateFilenameFunc)xmlOutputBufferCreateFilenameValue
void * xmlStructuredErrorContext
} xmlGlobalState;
[xmlGlobalState](libxml2-globals.html#xmlGlobalState)* xmlGlobalStatePtr;
void xmlDeregisterNodeFunc ([xmlNodePtr](libxml2-tree.html#xmlNodePtr)node)
Signature for the deregistration callback of a discarded node
| node: | the current node |
[xmlOutputBufferPtr](libxml2-tree.html#xmlOutputBufferPtr)xmlOutputBufferCreateFilenameFunc (const char * URI,
[xmlCharEncodingHandlerPtr](libxml2-encoding.html#xmlCharEncodingHandlerPtr)encoder,
int compression)
Signature for the function doing the lookup for a suitable output method corresponding to an URI.
| URI: | the URI to write to | | encoder: | | | compression: | | | Returns: | the new xmlOutputBufferPtr in case of success or NULL if no method was found. |
[xmlParserInputBufferPtr](libxml2-tree.html#xmlParserInputBufferPtr)xmlParserInputBufferCreateFilenameFunc (const char * URI,
[xmlCharEncoding](libxml2-encoding.html#xmlCharEncoding)enc)
Signature for the function doing the lookup for a suitable input method corresponding to an URI.
| URI: | the URI to read from | | enc: | the requested source encoding | | Returns: | the new xmlParserInputBufferPtr in case of success or NULL if no method was found. |
void xmlRegisterNodeFunc ([xmlNodePtr](libxml2-tree.html#xmlNodePtr)node)
Signature for the registration callback of a created node
| node: | the current node |
[xmlSAXHandlerV1](libxml2-parser.html#xmlSAXHandlerV1)docbDefaultSAXHandler;
[xmlSAXHandlerV1](libxml2-parser.html#xmlSAXHandlerV1)htmlDefaultSAXHandler;
int oldXMLWDcompatibility;
[xmlBufferAllocationScheme](libxml2-tree.html#xmlBufferAllocationScheme)xmlBufferAllocScheme;
int xmlDefaultBufferSize;
[xmlSAXHandlerV1](libxml2-parser.html#xmlSAXHandlerV1)xmlDefaultSAXHandler;
[xmlSAXLocator](libxml2-tree.html#xmlSAXLocator)xmlDefaultSAXLocator;
[xmlDeregisterNodeFunc](libxml2-globals.html#xmlDeregisterNodeFunc)xmlDeregisterNodeDefaultValue;
int xmlDoValidityCheckingDefaultValue;
[xmlFreeFunc](libxml2-xmlmemory.html#xmlFreeFunc)xmlFree;
[xmlGenericErrorFunc](libxml2-xmlerror.html#xmlGenericErrorFunc)xmlGenericError;
void * xmlGenericErrorContext;
int xmlGetWarningsDefaultValue;
int xmlIndentTreeOutput;
int xmlKeepBlanksDefaultValue;
[xmlError](libxml2-xmlerror.html#xmlError)xmlLastError;
int xmlLineNumbersDefaultValue;
int xmlLoadExtDtdDefaultValue;
[xmlMallocFunc](libxml2-xmlmemory.html#xmlMallocFunc)xmlMalloc;
[xmlMallocFunc](libxml2-xmlmemory.html#xmlMallocFunc)xmlMallocAtomic;
[xmlStrdupFunc](libxml2-xmlmemory.html#xmlStrdupFunc)xmlMemStrdup;
[xmlOutputBufferCreateFilenameFunc](libxml2-globals.html#xmlOutputBufferCreateFilenameFunc)xmlOutputBufferCreateFilenameValue;
int xmlParserDebugEntities;
[xmlParserInputBufferCreateFilenameFunc](libxml2-globals.html#xmlParserInputBufferCreateFilenameFunc)xmlParserInputBufferCreateFilenameValue;
const char * xmlParserVersion;
int xmlPedanticParserDefaultValue;
[xmlReallocFunc](libxml2-xmlmemory.html#xmlReallocFunc)xmlRealloc;
[xmlRegisterNodeFunc](libxml2-globals.html#xmlRegisterNodeFunc)xmlRegisterNodeDefaultValue;
int xmlSaveNoEmptyTags;
[xmlStructuredErrorFunc](libxml2-xmlerror.html#xmlStructuredErrorFunc)xmlStructuredError;
void * xmlStructuredErrorContext;
int xmlSubstituteEntitiesDefaultValue;
const char * xmlTreeIndentString;
void xmlCleanupGlobals (void)
Additional cleanup for multi-threading
[xmlDeregisterNodeFunc](libxml2-globals.html#xmlDeregisterNodeFunc)xmlDeregisterNodeDefault ([xmlDeregisterNodeFunc](libxml2-globals.html#xmlDeregisterNodeFunc)func)
Registers a callback for node destruction
| func: | function pointer to the new DeregisterNodeFunc | | Returns: | the previous value of the deregistration function |
void xmlInitGlobals (void)
Additional initialisation for multi-threading
void xmlInitializeGlobalState ([xmlGlobalStatePtr](libxml2-globals.html#xmlGlobalStatePtr)gs)
xmlInitializeGlobalState() initialize a global state with all the default values of the library.
| gs: | a pointer to a newly allocated global state |
[xmlOutputBufferCreateFilenameFunc](libxml2-globals.html#xmlOutputBufferCreateFilenameFunc)xmlOutputBufferCreateFilenameDefault ([xmlOutputBufferCreateFilenameFunc](libxml2-globals.html#xmlOutputBufferCreateFilenameFunc)func)
Registers a callback for URI output file handling
| func: | function pointer to the new OutputBufferCreateFilenameFunc | | Returns: | the old value of the registration function |
[xmlParserInputBufferCreateFilenameFunc](libxml2-globals.html#xmlParserInputBufferCreateFilenameFunc)xmlParserInputBufferCreateFilenameDefault ([xmlParserInputBufferCreateFilenameFunc](libxml2-globals.html#xmlParserInputBufferCreateFilenameFunc)func)
Registers a callback for URI input file handling
| func: | function pointer to the new ParserInputBufferCreateFilenameFunc | | Returns: | the old value of the registration function |
[xmlRegisterNodeFunc](libxml2-globals.html#xmlRegisterNodeFunc)xmlRegisterNodeDefault ([xmlRegisterNodeFunc](libxml2-globals.html#xmlRegisterNodeFunc)func)
Registers a callback for node creation
| func: | function pointer to the new RegisterNodeFunc | | Returns: | the old value of the registration function |
[xmlBufferAllocationScheme](libxml2-tree.html#xmlBufferAllocationScheme)xmlThrDefBufferAllocScheme ([xmlBufferAllocationScheme](libxml2-tree.html#xmlBufferAllocationScheme)v)
| v: | | | Returns: | |
int xmlThrDefDefaultBufferSize (int v)
| v: | | | Returns: | |
[xmlDeregisterNodeFunc](libxml2-globals.html#xmlDeregisterNodeFunc)xmlThrDefDeregisterNodeDefault ([xmlDeregisterNodeFunc](libxml2-globals.html#xmlDeregisterNodeFunc)func)
| func: | | | Returns: | |
int xmlThrDefDoValidityCheckingDefaultValue (int v)
| v: | | | Returns: | |
int xmlThrDefGetWarningsDefaultValue (int v)
| v: | | | Returns: | |
int xmlThrDefIndentTreeOutput (int v)
| v: | | | Returns: | |
int xmlThrDefKeepBlanksDefaultValue (int v)
| v: | | | Returns: | |
int xmlThrDefLineNumbersDefaultValue (int v)
| v: | | | Returns: | |
int xmlThrDefLoadExtDtdDefaultValue (int v)
| v: | | | Returns: | |
[xmlOutputBufferCreateFilenameFunc](libxml2-globals.html#xmlOutputBufferCreateFilenameFunc)xmlThrDefOutputBufferCreateFilenameDefault ([xmlOutputBufferCreateFilenameFunc](libxml2-globals.html#xmlOutputBufferCreateFilenameFunc)func)
| func: | | | Returns: | |
int xmlThrDefParserDebugEntities (int v)
| v: | | | Returns: | |
[xmlParserInputBufferCreateFilenameFunc](libxml2-globals.html#xmlParserInputBufferCreateFilenameFunc)xmlThrDefParserInputBufferCreateFilenameDefault ([xmlParserInputBufferCreateFilenameFunc](libxml2-globals.html#xmlParserInputBufferCreateFilenameFunc)func)
| func: | | | Returns: | |
int xmlThrDefPedanticParserDefaultValue (int v)
| v: | | | Returns: | |
[xmlRegisterNodeFunc](libxml2-globals.html#xmlRegisterNodeFunc)xmlThrDefRegisterNodeDefault ([xmlRegisterNodeFunc](libxml2-globals.html#xmlRegisterNodeFunc)func)
| func: | | | Returns: | |
int xmlThrDefSaveNoEmptyTags (int v)
| v: | | | Returns: | |
void xmlThrDefSetGenericErrorFunc (void * ctx,
[xmlGenericErrorFunc](libxml2-xmlerror.html#xmlGenericErrorFunc)handler)
| ctx: | | | handler: | |
void xmlThrDefSetStructuredErrorFunc (void * ctx,
[xmlStructuredErrorFunc](libxml2-xmlerror.html#xmlStructuredErrorFunc)handler)
| ctx: | | | handler: | |
int xmlThrDefSubstituteEntitiesDefaultValue (int v)
| v: | | | Returns: | |
const char * xmlThrDefTreeIndentString (const char * v)
| v: | | | Returns: | |