From 6c0188549b0b5bfad9abfbcee37ba09d66f2465c Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Wed, 23 Jul 2025 02:15:40 +0200 Subject: [PATCH] io: Deprecate xmlParserInputBuffer members --- include/libxml/parser.h | 2 +- include/libxml/xmlIO.h | 23 ++++++++++++++--------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/include/libxml/parser.h b/include/libxml/parser.h index b6d6fcf6..508f37e8 100644 --- a/include/libxml/parser.h +++ b/include/libxml/parser.h @@ -100,7 +100,7 @@ typedef void (* xmlParserInputDeallocate)(xmlChar *str); */ struct _xmlParserInput { /* Input buffer */ - xmlParserInputBuffer *buf; + xmlParserInputBuffer *buf XML_DEPRECATED_MEMBER; /** * @deprecated Use #xmlCtxtGetInputPosition * diff --git a/include/libxml/xmlIO.h b/include/libxml/xmlIO.h index 898f7ae7..6ebd6381 100644 --- a/include/libxml/xmlIO.h +++ b/include/libxml/xmlIO.h @@ -124,17 +124,22 @@ typedef xmlOutputBuffer * * be removed from the public interface. */ struct _xmlParserInputBuffer { - void* context; - xmlInputReadCallback readcallback; - xmlInputCloseCallback closecallback; + void* context XML_DEPRECATED_MEMBER; + xmlInputReadCallback readcallback XML_DEPRECATED_MEMBER; + xmlInputCloseCallback closecallback XML_DEPRECATED_MEMBER; - xmlCharEncodingHandler *encoder; /* I18N conversions to UTF-8 */ + /* I18N conversions to UTF-8 */ + xmlCharEncodingHandler *encoder XML_DEPRECATED_MEMBER; - xmlBuf *buffer; /* Local buffer encoded in UTF-8 */ - xmlBuf *raw; /* if encoder != NULL buffer for raw input */ - int compressed; /* -1=unknown, 0=not compressed, 1=compressed */ - int error; - unsigned long rawconsumed;/* amount consumed from raw */ + /* Local buffer encoded in UTF-8 */ + xmlBuf *buffer XML_DEPRECATED_MEMBER; + /* if encoder != NULL buffer for raw input */ + xmlBuf *raw XML_DEPRECATED_MEMBER; + /* -1=unknown, 0=not compressed, 1=compressed */ + int compressed XML_DEPRECATED_MEMBER; + int error XML_DEPRECATED_MEMBER; + /* amount consumed from raw */ + unsigned long rawconsumed XML_DEPRECATED_MEMBER; };