![]() |
![]() |
![]() |
![]() |
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 <Gary.Pennington@uk.sun.com>, Daniel Veillard
typedef xmlGlobalState * xmlGlobalStatePtr; typedef struct _xmlGlobalState xmlGlobalState; void xmlThrDefSetStructuredErrorFunc (void * ctx,
xmlStructuredErrorFunc handler); void xmlInitializeGlobalState (xmlGlobalStatePtr gs); xmlBufferAllocationScheme xmlThrDefBufferAllocScheme (xmlBufferAllocationScheme v); int xmlThrDefPedanticParserDefaultValue (int v); xmlRegisterNodeFunc xmlRegisterNodeDefault (xmlRegisterNodeFunc func); typedef xmlParserInputBufferPtr xmlParserInputBufferCreateFilenameFunc (const char * URI,
xmlCharEncoding enc); xmlOutputBufferCreateFilenameFunc xmlThrDefOutputBufferCreateFilenameDefault (xmlOutputBufferCreateFilenameFunc func); xmlDeregisterNodeFunc xmlDeregisterNodeDefault (xmlDeregisterNodeFunc func); int xmlThrDefDefaultBufferSize (int v); xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameDefault (xmlOutputBufferCreateFilenameFunc func); int xmlThrDefLoadExtDtdDefaultValue (int v); xmlRegisterNodeFunc xmlThrDefRegisterNodeDefault (xmlRegisterNodeFunc func); int xmlThrDefKeepBlanksDefaultValue (int v); typedef void xmlDeregisterNodeFunc (xmlNodePtr node); int xmlThrDefParserDebugEntities (int v); xmlParserInputBufferCreateFilenameFunc xmlThrDefParserInputBufferCreateFilenameDefault (xmlParserInputBufferCreateFilenameFunc func); void xmlThrDefSetGenericErrorFunc (void * ctx,
xmlGenericErrorFunc handler); xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameDefault (xmlParserInputBufferCreateFilenameFunc func); int xmlThrDefDoValidityCheckingDefaultValue (int v); void xmlCleanupGlobals (void); int xmlThrDefGetWarningsDefaultValue (int v); xmlDeregisterNodeFunc xmlThrDefDeregisterNodeDefault (xmlDeregisterNodeFunc func); int xmlThrDefSubstituteEntitiesDefaultValue (int v); typedef void xmlRegisterNodeFunc (xmlNodePtr node); int xmlThrDefSaveNoEmptyTags (int v); int xmlThrDefIndentTreeOutput (int v); typedef xmlOutputBufferPtr xmlOutputBufferCreateFilenameFunc (const char * URI,
xmlCharEncodingHandlerPtr encoder,
int compression); void xmlInitGlobals (void); int xmlThrDefLineNumbersDefaultValue (int v); const char * xmlThrDefTreeIndentString (const char * v);
struct _xmlGlobalState { const char * xmlParserVersion xmlSAXLocator xmlDefaultSAXLocator xmlSAXHandlerV1 xmlDefaultSAXHandler xmlSAXHandlerV1 docbDefaultSAXHandler 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 } xmlGlobalState;
void xmlDeregisterNodeFunc (xmlNodePtr node)
Signature for the deregistration callback of a discarded node
node: | the current node |
xmlOutputBufferPtr xmlOutputBufferCreateFilenameFunc (const char * URI,
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 xmlParserInputBufferCreateFilenameFunc (const char * URI,
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 node)
Signature for the registration callback of a created node
node: | the current node |
xmlOutputBufferCreateFilenameFunc xmlOutputBufferCreateFilenameValue;
xmlParserInputBufferCreateFilenameFunc xmlParserInputBufferCreateFilenameValue;
xmlDeregisterNodeFunc xmlDeregisterNodeDefault (xmlDeregisterNodeFunc func)
Registers a callback for node destruction
func: | function pointer to the new DeregisterNodeFunc |
Returns: | the previous value of the deregistration function |
void xmlInitializeGlobalState (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 xmlOutputBufferCreateFilenameDefault (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 xmlParserInputBufferCreateFilenameDefault (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 xmlRegisterNodeDefault (xmlRegisterNodeFunc func)
Registers a callback for node creation
func: | function pointer to the new RegisterNodeFunc |
Returns: | the old value of the registration function |
xmlBufferAllocationScheme xmlThrDefBufferAllocScheme (xmlBufferAllocationScheme v)
v: | |
Returns: |
xmlDeregisterNodeFunc xmlThrDefDeregisterNodeDefault (xmlDeregisterNodeFunc func)
func: | |
Returns: |
int xmlThrDefDoValidityCheckingDefaultValue (int v)
v: | |
Returns: |
xmlOutputBufferCreateFilenameFunc xmlThrDefOutputBufferCreateFilenameDefault (xmlOutputBufferCreateFilenameFunc func)
func: | |
Returns: |
xmlParserInputBufferCreateFilenameFunc xmlThrDefParserInputBufferCreateFilenameDefault (xmlParserInputBufferCreateFilenameFunc func)
func: | |
Returns: |
xmlRegisterNodeFunc xmlThrDefRegisterNodeDefault (xmlRegisterNodeFunc func)
func: | |
Returns: |
void xmlThrDefSetGenericErrorFunc (void * ctx,
xmlGenericErrorFunc handler)
ctx: | |
handler: |
void xmlThrDefSetStructuredErrorFunc (void * ctx,
xmlStructuredErrorFunc handler)
ctx: | |
handler: |
int xmlThrDefSubstituteEntitiesDefaultValue (int v)
v: | |
Returns: |