aboutsummaryrefslogtreecommitdiffstats
path: root/include/libxml/globals.h
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-01-01 20:59:38 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-01-01 20:59:38 +0000
commit5335dc52afb3400b469264d758be01af84e4cfb0 (patch)
treeac4349e07217df8fe9bea36e06ef0a563954248f /include/libxml/globals.h
parent8ba1741abd991f8ab885f9fe1cecb69cf259f84f (diff)
downloadandroid_external_libxml2-5335dc52afb3400b469264d758be01af84e4cfb0.tar.gz
android_external_libxml2-5335dc52afb3400b469264d758be01af84e4cfb0.tar.bz2
android_external_libxml2-5335dc52afb3400b469264d758be01af84e4cfb0.zip
applied an old patch from Lukas Schroeder to track node creation and
* global.data globals.c tree.c include/libxml/globals.h: applied an old patch from Lukas Schroeder to track node creation and destruction. Probably missing a lot of references at the moment and not usable reliably. Daniel
Diffstat (limited to 'include/libxml/globals.h')
-rw-r--r--include/libxml/globals.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/libxml/globals.h b/include/libxml/globals.h
index fc6c01e5..ce98a11f 100644
--- a/include/libxml/globals.h
+++ b/include/libxml/globals.h
@@ -52,6 +52,11 @@ extern "C" {
#undef xmlRealloc
#undef xmlSaveNoEmptyTags
#undef xmlSubstituteEntitiesDefaultValue
+#undef xmlRegisterNodeDefaultValue
+#undef xmlDeregisterNodeDefaultValue
+
+typedef void (*xmlRegisterNodeFunc)(xmlNodePtr node);
+typedef void (*xmlDeregisterNodeFunc)(xmlNodePtr node);
typedef struct _xmlGlobalState xmlGlobalState;
typedef xmlGlobalState *xmlGlobalStatePtr;
@@ -89,6 +94,9 @@ struct _xmlGlobalState
int xmlSaveNoEmptyTags;
int xmlIndentTreeOutput;
const char *xmlTreeIndentString;
+
+ xmlRegisterNodeFunc xmlRegisterNodeDefaultValue;
+ xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue;
};
#ifdef __cplusplus
@@ -101,6 +109,9 @@ extern "C" {
void xmlInitializeGlobalState(xmlGlobalStatePtr gs);
+xmlRegisterNodeFunc xmlRegisterNodeDefault(xmlRegisterNodeFunc func);
+xmlDeregisterNodeFunc xmlDeregisterNodeDefault(xmlDeregisterNodeFunc func);
+
/*
* In general the memory allocation entry points are not kept
* thread specific but this can be overridden by LIBXML_THREAD_ALLOC_ENABLED
@@ -329,6 +340,22 @@ extern int *__xmlSubstituteEntitiesDefaultValue(void);
LIBXML_DLL_IMPORT extern int xmlSubstituteEntitiesDefaultValue;
#endif
+extern xmlRegisterNodeFunc *__xmlRegisterNodeDefaultValue(void);
+#ifdef LIBXML_THREAD_ENABLED
+#define xmlRegisterNodeDefaultValue \
+(*(__xmlRegisterNodeDefaultValue()))
+#else
+LIBXML_DLL_IMPORT extern xmlRegisterNodeFunc xmlRegisterNodeDefaultValue;
+#endif
+
+extern xmlDeregisterNodeFunc *__xmlDeregisterNodeDefaultValue(void);
+#ifdef LIBXML_THREAD_ENABLED
+#define xmlDeregisterNodeDefaultValue \
+(*(__xmlDeregisterNodeDefaultValue()))
+#else
+LIBXML_DLL_IMPORT extern xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue;
+#endif
+
#ifdef __cplusplus
}
#endif