From aa6ca0b1d3587e9a5855c5b73e6062dabd27c0f3 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Tue, 23 Jul 2024 03:29:41 +0200 Subject: [PATCH] module: Deprecate module API This was only used by libxslt which switched to a private implementation. --- include/libxml/xmlmodule.h | 4 ++++ testModule.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/include/libxml/xmlmodule.h b/include/libxml/xmlmodule.h index 279986c1..5db55856 100644 --- a/include/libxml/xmlmodule.h +++ b/include/libxml/xmlmodule.h @@ -37,15 +37,19 @@ typedef enum { XML_MODULE_LOCAL= 2 /* local binding */ } xmlModuleOption; +XML_DEPRECATED XMLPUBFUN xmlModulePtr xmlModuleOpen (const char *filename, int options); +XML_DEPRECATED XMLPUBFUN int xmlModuleSymbol (xmlModulePtr module, const char* name, void **result); +XML_DEPRECATED XMLPUBFUN int xmlModuleClose (xmlModulePtr module); +XML_DEPRECATED XMLPUBFUN int xmlModuleFree (xmlModulePtr module); #ifdef __cplusplus diff --git a/testModule.c b/testModule.c index 7f848661..00055a4c 100644 --- a/testModule.c +++ b/testModule.c @@ -6,6 +6,8 @@ * joelwreed@comcast.net */ +#define XML_DEPRECATED + #include "libxml.h" #include #include