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 XMLPUBFUN xlinkNodeDetectFunc
xlinkGetDefaultDetect (void); xlinkGetDefaultDetect (void);
XML_DEPRECATED
XMLPUBFUN void XMLPUBFUN void
xlinkSetDefaultDetect (xlinkNodeDetectFunc func); xlinkSetDefaultDetect (xlinkNodeDetectFunc func);
@ -170,6 +171,7 @@ XMLPUBFUN void
*/ */
XMLPUBFUN xlinkHandlerPtr XMLPUBFUN xlinkHandlerPtr
xlinkGetDefaultHandler (void); xlinkGetDefaultHandler (void);
XML_DEPRECATED
XMLPUBFUN void XMLPUBFUN void
xlinkSetDefaultHandler (xlinkHandlerPtr handler); xlinkSetDefaultHandler (xlinkHandlerPtr handler);

View File

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