From 075283d49d5ebb8533e87362467218449761437d Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Sat, 3 May 2025 00:17:39 +0200 Subject: [PATCH] xlink: Deprecate remaining public function This was never finished. --- include/libxml/xlink.h | 3 ++- xlink.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/libxml/xlink.h b/include/libxml/xlink.h index 11c4fc293..f862809fb 100644 --- a/include/libxml/xlink.h +++ b/include/libxml/xlink.h @@ -3,7 +3,7 @@ * * @brief unfinished XLink detection module * - * unfinished XLink detection module + * This module is deprecated, don't use. * * @copyright See Copyright for the status of this software. * @@ -179,6 +179,7 @@ XMLPUBFUN void /* * Link detection module itself. */ +XML_DEPRECATED XMLPUBFUN xlinkType xlinkIsLink (xmlDocPtr doc, xmlNodePtr node); diff --git a/xlink.c b/xlink.c index b42ab490e..2126eee5a 100644 --- a/xlink.c +++ b/xlink.c @@ -93,6 +93,8 @@ xlinkSetDefaultDetect (xlinkNodeDetectFunc func) { * @param doc the document containing the node * @param node the node pointer itself * + * @deprecated The XLink code was never finished. + * * Check whether the given node carries the attributes needed * to be a link element (or is one of the linking elements issued * from the (X)HTML DtDs).