1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-01-12 09:17:37 +03:00

xlink: Deprecate xlinkSetDefault*

These functions set an otherwise unused global and seem useless.
This commit is contained in:
Nick Wellnhofer 2024-06-12 19:43:22 +02:00
parent 669bd34993
commit 046663bc54
2 changed files with 6 additions and 0 deletions

View File

@ -162,6 +162,7 @@ struct _xlinkHandler {
XMLPUBFUN xlinkNodeDetectFunc
xlinkGetDefaultDetect (void);
XML_DEPRECATED
XMLPUBFUN void
xlinkSetDefaultDetect (xlinkNodeDetectFunc func);
@ -170,6 +171,7 @@ XMLPUBFUN void
*/
XMLPUBFUN xlinkHandlerPtr
xlinkGetDefaultHandler (void);
XML_DEPRECATED
XMLPUBFUN void
xlinkSetDefaultHandler (xlinkHandlerPtr handler);

View File

@ -36,6 +36,8 @@ static xlinkNodeDetectFunc xlinkDefaultDetect = NULL;
/**
* xlinkGetDefaultHandler:
*
* DEPRECATED: Don't use.
*
* Get the default xlink handler.
*
* Returns the current xlinkHandlerPtr value.
@ -50,6 +52,8 @@ xlinkGetDefaultHandler(void) {
* xlinkSetDefaultHandler:
* @handler: the new value for the xlink handler block
*
* DEPRECATED: Don't use.
*
* Set the default xlink handlers
*/
void