diff --git a/doc/html/libxml-globals.html b/doc/html/libxml-globals.html new file mode 100644 index 00000000..842379b2 --- /dev/null +++ b/doc/html/libxml-globals.html @@ -0,0 +1,1316 @@ +
Gnome XML Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
+ +struct xmlGlobalState; +typedef xmlGlobalStatePtr; +void xmlInitializeGlobalState (xmlGlobalStatePtr gs); +#define xmlMalloc (size) +#define xmlRealloc (ptr, size) +#define xmlFree +#define xmlMemStrdup (str) +#define docbDefaultSAXHandler +#define htmlDefaultSAXHandler +#define oldXMLWDcompatibility +#define xmlBufferAllocScheme +#define xmlDefaultBufferSize +#define xmlDefaultSAXHandler +#define xmlDefaultSAXLocator +#define xmlDoValidityCheckingDefaultValue +#define xmlGenericError +#define xmlGenericErrorContext +#define xmlGetWarningsDefaultValue +#define xmlIndentTreeOutput +#define xmlKeepBlanksDefaultValue +#define xmlLineNumbersDefaultValue +#define xmlLoadExtDtdDefaultValue +#define xmlParserDebugEntities +#define xmlParserVersion +#define xmlPedanticParserDefaultValue +#define xmlSaveNoEmptyTags +#define xmlSubstituteEntitiesDefaultValue |
struct xmlGlobalState +{ + const char *xmlParserVersion; + + xmlSAXLocator xmlDefaultSAXLocator; + xmlSAXHandler xmlDefaultSAXHandler; + xmlSAXHandler docbDefaultSAXHandler; + xmlSAXHandler htmlDefaultSAXHandler; + + xmlFreeFunc xmlFree; + xmlMallocFunc xmlMalloc; + xmlStrdupFunc xmlMemStrdup; + xmlReallocFunc xmlRealloc; + + xmlGenericErrorFunc xmlGenericError; + 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; +}; |
void xmlInitializeGlobalState (xmlGlobalStatePtr gs); |
xmlInitializeGlobalState() initialize a global state with all the +default values of the library.
#define xmlMemStrdup(str) |
Wrapper for the
Gnome XML Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
+ +struct xmlHashTable; +typedef xmlHashTablePtr; +void (*xmlHashDeallocator) (void *payload, + xmlChar *name); +void* (*xmlHashCopier) (void *payload, + xmlChar *name); +void* (*xmlHashScanner) (void *payload, + void *data, + xmlChar *name); +void (*xmlHashScannerFull) (void *payload, + void *data, + const xmlChar *name, + const xmlChar *name2, + const xmlChar *name3); +xmlHashTablePtr xmlHashCreate (int size); +void xmlHashFree (xmlHashTablePtr table, + xmlHashDeallocator f); +int xmlHashAddEntry (xmlHashTablePtr table, + const xmlChar *name, + void *userdata); +int xmlHashUpdateEntry (xmlHashTablePtr table, + const xmlChar *name, + void *userdata, + xmlHashDeallocator f); +int xmlHashAddEntry2 (xmlHashTablePtr table, + const xmlChar *name, + const xmlChar *name2, + void *userdata); +int xmlHashUpdateEntry2 (xmlHashTablePtr table, + const xmlChar *name, + const xmlChar *name2, + void *userdata, + xmlHashDeallocator f); +int xmlHashAddEntry3 (xmlHashTablePtr table, + const xmlChar *name, + const xmlChar *name2, + const xmlChar *name3, + void *userdata); +int xmlHashUpdateEntry3 (xmlHashTablePtr table, + const xmlChar *name, + const xmlChar *name2, + const xmlChar *name3, + void *userdata, + xmlHashDeallocator f); +int xmlHashRemoveEntry (xmlHashTablePtr table, + const xmlChar *name, + xmlHashDeallocator f); +int xmlHashRemoveEntry2 (xmlHashTablePtr table, + const xmlChar *name, + const xmlChar *name2, + xmlHashDeallocator f); +int xmlHashRemoveEntry3 (xmlHashTablePtr table, + const xmlChar *name, + const xmlChar *name2, + const xmlChar *name3, + xmlHashDeallocator f); +void* xmlHashLookup (xmlHashTablePtr table, + const xmlChar *name); +void* xmlHashLookup2 (xmlHashTablePtr table, + const xmlChar *name, + const xmlChar *name2); +void* xmlHashLookup3 (xmlHashTablePtr table, + const xmlChar *name, + const xmlChar *name2, + const xmlChar *name3); +xmlHashTablePtr xmlHashCopy (xmlHashTablePtr table, + xmlHashCopier f); +int xmlHashSize (xmlHashTablePtr table); +void xmlHashScan (xmlHashTablePtr table, + xmlHashScanner f, + void *data); +void xmlHashScan3 (xmlHashTablePtr table, + const xmlChar *name, + const xmlChar *name2, + const xmlChar *name3, + xmlHashScanner f, + void *data); +void xmlHashScanFull (xmlHashTablePtr table, + xmlHashScannerFull f, + void *data); +void xmlHashScanFull3 (xmlHashTablePtr table, + const xmlChar *name, + const xmlChar *name2, + const xmlChar *name3, + xmlHashScannerFull f, + void *data); |
void (*xmlHashScannerFull) (void *payload, + void *data, + const xmlChar *name, + const xmlChar *name2, + const xmlChar *name3); |
void xmlHashFree (xmlHashTablePtr table, + xmlHashDeallocator f); |
Free the hash table and its contents. The userdata is +deallocated with f if provided.
int xmlHashAddEntry (xmlHashTablePtr table, + const xmlChar *name, + void *userdata); |
Add the userdata to the hash table. This can later be retrieved +by using the name. Duplicate names generate errors.
int xmlHashUpdateEntry (xmlHashTablePtr table, + const xmlChar *name, + void *userdata, + xmlHashDeallocator f); |
Add the userdata to the hash table. This can later be retrieved +by using the name. Existing entry for this name will be removed +and freed with f if found.
int xmlHashAddEntry2 (xmlHashTablePtr table, + const xmlChar *name, + const xmlChar *name2, + void *userdata); |
Add the userdata to the hash table. This can later be retrieved +by using the (name, name2) tuple. Duplicate tuples generate errors.
int xmlHashUpdateEntry2 (xmlHashTablePtr table, + const xmlChar *name, + const xmlChar *name2, + void *userdata, + xmlHashDeallocator f); |
Add the userdata to the hash table. This can later be retrieved +by using the (name, name2) tuple. Existing entry for this tuple will +be removed and freed with f if found.
int xmlHashAddEntry3 (xmlHashTablePtr table, + const xmlChar *name, + const xmlChar *name2, + const xmlChar *name3, + void *userdata); |
Add the userdata to the hash table. This can later be retrieved +by using the tuple (name, name2, name3). Duplicate entries generate +errors.
int xmlHashUpdateEntry3 (xmlHashTablePtr table, + const xmlChar *name, + const xmlChar *name2, + const xmlChar *name3, + void *userdata, + xmlHashDeallocator f); |
Add the userdata to the hash table. This can later be retrieved +by using the tuple (name, name2, name3). Existing entry for this tuple +will be removed and freed with f if found.
int xmlHashRemoveEntry (xmlHashTablePtr table, + const xmlChar *name, + xmlHashDeallocator f); |
Find the userdata specified by the (name, name2, name3) tuple and remove +it from the hash table. Existing userdata for this tuple will be removed +and freed with f.
int xmlHashRemoveEntry2 (xmlHashTablePtr table, + const xmlChar *name, + const xmlChar *name2, + xmlHashDeallocator f); |
Find the userdata specified by the (name, name2, name3) tuple and remove +it from the hash table. Existing userdata for this tuple will be removed +and freed with f.
int xmlHashRemoveEntry3 (xmlHashTablePtr table, + const xmlChar *name, + const xmlChar *name2, + const xmlChar *name3, + xmlHashDeallocator f); |
Find the userdata specified by the (name, name2, name3) tuple and remove +it from the hash table. Existing userdata for this tuple will be removed +and freed with f.
void* xmlHashLookup (xmlHashTablePtr table, + const xmlChar *name); |
Find the userdata specified by the name.
void* xmlHashLookup2 (xmlHashTablePtr table, + const xmlChar *name, + const xmlChar *name2); |
Find the userdata specified by the (name, name2) tuple.
void* xmlHashLookup3 (xmlHashTablePtr table, + const xmlChar *name, + const xmlChar *name2, + const xmlChar *name3); |
Find the userdata specified by the (name, name2, name3) tuple.
xmlHashTablePtr xmlHashCopy (xmlHashTablePtr table, + xmlHashCopier f); |
Scan the hash table and applied f to each value.
int xmlHashSize (xmlHashTablePtr table); |
Query the number of element installed in the hash table.
void xmlHashScan (xmlHashTablePtr table, + xmlHashScanner f, + void *data); |
Scan the hash table and applied f to each value.
void xmlHashScan3 (xmlHashTablePtr table, + const xmlChar *name, + const xmlChar *name2, + const xmlChar *name3, + xmlHashScanner f, + void *data); |
Scan the hash table and applied f to each value matching +(name, name2, name3) tuple. If one of the names is null, +the comparison is considered to match.
void xmlHashScanFull (xmlHashTablePtr table, + xmlHashScannerFull f, + void *data); |
Scan the hash table and applied f to each value.
void xmlHashScanFull3 (xmlHashTablePtr table, + const xmlChar *name, + const xmlChar *name2, + const xmlChar *name3, + xmlHashScannerFull f, + void *data); |
Scan the hash table and applied f to each value matching +(name, name2, name3) tuple. If one of the names is null, +the comparison is considered to match.
Gnome XML Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
+ +struct xmlMutex; +typedef xmlMutexPtr; +xmlMutexPtr xmlNewMutex (void); +void xmlMutexLock (xmlMutexPtr tok); +void xmlMutexUnlock (xmlMutexPtr tok); +void xmlFreeMutex (xmlMutexPtr tok); +struct xmlRMutex; +typedef xmlRMutexPtr; +xmlRMutexPtr xmlNewRMutex (void); +void xmlRMutexLock (xmlRMutexPtr tok); +void xmlRMutexUnlock (xmlRMutexPtr tok); +void xmlFreeRMutex (xmlRMutexPtr tok); +void xmlInitThreads (void); +void xmlLockLibrary (void); +void xmlUnlockLibrary (void); +int xmlGetThreadId (void); +int xmlIsMainThread (void); +void xmlCleanupThreads (void); +xmlGlobalStatePtr xmlGetGlobalState (void); |
typedef xmlMutex *xmlMutexPtr; |
xmlNewMutex() is used to allocate a libxml2 token struct for use in +synchronizing access to data.
void xmlMutexUnlock (xmlMutexPtr tok); |
xmlMutexUnlock() is used to unlock a libxml2 token.
void xmlFreeMutex (xmlMutexPtr tok); |
xmlFreeMutex() is used to reclaim resources associated with a libxml2 token +struct.
void xmlRMutexLock (xmlRMutexPtr tok); |
xmlRMutexLock() is used to lock a libxml2 token_r.
void xmlRMutexUnlock (xmlRMutexPtr tok); |
xmlRMutexUnlock() is used to unlock a libxml2 token_r.
void xmlInitThreads (void); |
xmlInitThreads() is used to to initialize all the thread related +data of the libxml2 library.
void xmlLockLibrary (void); |
xmlLockLibrary() is used to take out a re-entrant lock on the libxml2 +library.
void xmlUnlockLibrary (void); |
xmlUnlockLibrary() is used to release a re-entrant lock on the libxml2 +library.
int xmlIsMainThread (void); |
xmlIsMainThread() check wether the current thread is the main thread.
void xmlCleanupThreads (void); |
xmlCleanupThreads() is used to to cleanup all the thread related +data of the libxml2 library once processing has ended.
xmlGlobalStatePtr xmlGetGlobalState (void); |
xmlGetGlobalState() is called to retrieve the global state for a thread. +keyonce will only be set once during a library invocation and is used +to create globalkey, the key used to store each thread's TSD.
Note: it should not be called for the "main" thread as this thread uses +the existing global variables defined in the library.