summaryrefslogtreecommitdiff
path: root/dict.c
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2022-03-06 13:55:48 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2022-03-06 15:59:43 +0100
commit40483d0ce26119fd3b23aea6cce532a8a78670cf (patch)
tree5436f5b1ca0065942f83a6a4be2c3a92acbcf07c /dict.c
parent7d02c7291f5c0ba56b9d8c04af7690cf11e47f07 (diff)
downloadlibxml2-40483d0ce26119fd3b23aea6cce532a8a78670cf.tar.gz
Deprecate module init and cleanup functions
These functions shouldn't be part of the public API. Most init functions are only thread-safe when called from xmlInitParser. Global variables should only be cleaned up by calling xmlCleanupParser.
Diffstat (limited to 'dict.c')
-rw-r--r--dict.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/dict.c b/dict.c
index ecc90e0f..0e4c87b9 100644
--- a/dict.c
+++ b/dict.c
@@ -146,8 +146,10 @@ static unsigned int rand_seed = 0;
/**
* xmlInitializeDict:
*
+ * DEPRECATED: This function will be made private. Call xmlInitParser to
+ * initialize the library.
+ *
* Do the dictionary mutex initialization.
- * this function is deprecated
*
* Returns 0 if initialization was already done, and 1 if that
* call led to the initialization
@@ -210,6 +212,11 @@ int __xmlRandom(void) {
/**
* xmlDictCleanup:
*
+ * DEPRECATED: This function will be made private. Call xmlCleanupParser
+ * to free global state but see the warnings there. xmlCleanupParser
+ * should be only called once at program exit. In most cases, you don't
+ * have call cleanup functions at all.
+ *
* Free the dictionary mutex. Do not call unless sure the library
* is not in use anymore !
*/