mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-26 00:37:43 +03:00
Deprecate legacy functions
This commit is contained in:
@@ -23,47 +23,61 @@
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN const xmlChar * XMLCALL
|
XMLPUBFUN const xmlChar * XMLCALL
|
||||||
getPublicId (void *ctx);
|
getPublicId (void *ctx);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN const xmlChar * XMLCALL
|
XMLPUBFUN const xmlChar * XMLCALL
|
||||||
getSystemId (void *ctx);
|
getSystemId (void *ctx);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
setDocumentLocator (void *ctx,
|
setDocumentLocator (void *ctx,
|
||||||
xmlSAXLocatorPtr loc);
|
xmlSAXLocatorPtr loc);
|
||||||
|
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN int XMLCALL
|
XMLPUBFUN int XMLCALL
|
||||||
getLineNumber (void *ctx);
|
getLineNumber (void *ctx);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN int XMLCALL
|
XMLPUBFUN int XMLCALL
|
||||||
getColumnNumber (void *ctx);
|
getColumnNumber (void *ctx);
|
||||||
|
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN int XMLCALL
|
XMLPUBFUN int XMLCALL
|
||||||
isStandalone (void *ctx);
|
isStandalone (void *ctx);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN int XMLCALL
|
XMLPUBFUN int XMLCALL
|
||||||
hasInternalSubset (void *ctx);
|
hasInternalSubset (void *ctx);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN int XMLCALL
|
XMLPUBFUN int XMLCALL
|
||||||
hasExternalSubset (void *ctx);
|
hasExternalSubset (void *ctx);
|
||||||
|
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
internalSubset (void *ctx,
|
internalSubset (void *ctx,
|
||||||
const xmlChar *name,
|
const xmlChar *name,
|
||||||
const xmlChar *ExternalID,
|
const xmlChar *ExternalID,
|
||||||
const xmlChar *SystemID);
|
const xmlChar *SystemID);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
externalSubset (void *ctx,
|
externalSubset (void *ctx,
|
||||||
const xmlChar *name,
|
const xmlChar *name,
|
||||||
const xmlChar *ExternalID,
|
const xmlChar *ExternalID,
|
||||||
const xmlChar *SystemID);
|
const xmlChar *SystemID);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN xmlEntityPtr XMLCALL
|
XMLPUBFUN xmlEntityPtr XMLCALL
|
||||||
getEntity (void *ctx,
|
getEntity (void *ctx,
|
||||||
const xmlChar *name);
|
const xmlChar *name);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN xmlEntityPtr XMLCALL
|
XMLPUBFUN xmlEntityPtr XMLCALL
|
||||||
getParameterEntity (void *ctx,
|
getParameterEntity (void *ctx,
|
||||||
const xmlChar *name);
|
const xmlChar *name);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN xmlParserInputPtr XMLCALL
|
XMLPUBFUN xmlParserInputPtr XMLCALL
|
||||||
resolveEntity (void *ctx,
|
resolveEntity (void *ctx,
|
||||||
const xmlChar *publicId,
|
const xmlChar *publicId,
|
||||||
const xmlChar *systemId);
|
const xmlChar *systemId);
|
||||||
|
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
entityDecl (void *ctx,
|
entityDecl (void *ctx,
|
||||||
const xmlChar *name,
|
const xmlChar *name,
|
||||||
@@ -71,6 +85,7 @@ XMLPUBFUN void XMLCALL
|
|||||||
const xmlChar *publicId,
|
const xmlChar *publicId,
|
||||||
const xmlChar *systemId,
|
const xmlChar *systemId,
|
||||||
xmlChar *content);
|
xmlChar *content);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
attributeDecl (void *ctx,
|
attributeDecl (void *ctx,
|
||||||
const xmlChar *elem,
|
const xmlChar *elem,
|
||||||
@@ -79,16 +94,19 @@ XMLPUBFUN void XMLCALL
|
|||||||
int def,
|
int def,
|
||||||
const xmlChar *defaultValue,
|
const xmlChar *defaultValue,
|
||||||
xmlEnumerationPtr tree);
|
xmlEnumerationPtr tree);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
elementDecl (void *ctx,
|
elementDecl (void *ctx,
|
||||||
const xmlChar *name,
|
const xmlChar *name,
|
||||||
int type,
|
int type,
|
||||||
xmlElementContentPtr content);
|
xmlElementContentPtr content);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
notationDecl (void *ctx,
|
notationDecl (void *ctx,
|
||||||
const xmlChar *name,
|
const xmlChar *name,
|
||||||
const xmlChar *publicId,
|
const xmlChar *publicId,
|
||||||
const xmlChar *systemId);
|
const xmlChar *systemId);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
unparsedEntityDecl (void *ctx,
|
unparsedEntityDecl (void *ctx,
|
||||||
const xmlChar *name,
|
const xmlChar *name,
|
||||||
@@ -96,69 +114,88 @@ XMLPUBFUN void XMLCALL
|
|||||||
const xmlChar *systemId,
|
const xmlChar *systemId,
|
||||||
const xmlChar *notationName);
|
const xmlChar *notationName);
|
||||||
|
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
startDocument (void *ctx);
|
startDocument (void *ctx);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
endDocument (void *ctx);
|
endDocument (void *ctx);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
attribute (void *ctx,
|
attribute (void *ctx,
|
||||||
const xmlChar *fullname,
|
const xmlChar *fullname,
|
||||||
const xmlChar *value);
|
const xmlChar *value);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
startElement (void *ctx,
|
startElement (void *ctx,
|
||||||
const xmlChar *fullname,
|
const xmlChar *fullname,
|
||||||
const xmlChar **atts);
|
const xmlChar **atts);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
endElement (void *ctx,
|
endElement (void *ctx,
|
||||||
const xmlChar *name);
|
const xmlChar *name);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
reference (void *ctx,
|
reference (void *ctx,
|
||||||
const xmlChar *name);
|
const xmlChar *name);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
characters (void *ctx,
|
characters (void *ctx,
|
||||||
const xmlChar *ch,
|
const xmlChar *ch,
|
||||||
int len);
|
int len);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
ignorableWhitespace (void *ctx,
|
ignorableWhitespace (void *ctx,
|
||||||
const xmlChar *ch,
|
const xmlChar *ch,
|
||||||
int len);
|
int len);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
processingInstruction (void *ctx,
|
processingInstruction (void *ctx,
|
||||||
const xmlChar *target,
|
const xmlChar *target,
|
||||||
const xmlChar *data);
|
const xmlChar *data);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
globalNamespace (void *ctx,
|
globalNamespace (void *ctx,
|
||||||
const xmlChar *href,
|
const xmlChar *href,
|
||||||
const xmlChar *prefix);
|
const xmlChar *prefix);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
setNamespace (void *ctx,
|
setNamespace (void *ctx,
|
||||||
const xmlChar *name);
|
const xmlChar *name);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN xmlNsPtr XMLCALL
|
XMLPUBFUN xmlNsPtr XMLCALL
|
||||||
getNamespace (void *ctx);
|
getNamespace (void *ctx);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN int XMLCALL
|
XMLPUBFUN int XMLCALL
|
||||||
checkNamespace (void *ctx,
|
checkNamespace (void *ctx,
|
||||||
xmlChar *nameSpace);
|
xmlChar *nameSpace);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
namespaceDecl (void *ctx,
|
namespaceDecl (void *ctx,
|
||||||
const xmlChar *href,
|
const xmlChar *href,
|
||||||
const xmlChar *prefix);
|
const xmlChar *prefix);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
comment (void *ctx,
|
comment (void *ctx,
|
||||||
const xmlChar *value);
|
const xmlChar *value);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
cdataBlock (void *ctx,
|
cdataBlock (void *ctx,
|
||||||
const xmlChar *value,
|
const xmlChar *value,
|
||||||
int len);
|
int len);
|
||||||
|
|
||||||
#ifdef LIBXML_SAX1_ENABLED
|
#ifdef LIBXML_SAX1_ENABLED
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
initxmlDefaultSAXHandler (xmlSAXHandlerV1 *hdlr,
|
initxmlDefaultSAXHandler (xmlSAXHandlerV1 *hdlr,
|
||||||
int warning);
|
int warning);
|
||||||
#ifdef LIBXML_HTML_ENABLED
|
#ifdef LIBXML_HTML_ENABLED
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
inithtmlDefaultSAXHandler (xmlSAXHandlerV1 *hdlr);
|
inithtmlDefaultSAXHandler (xmlSAXHandlerV1 *hdlr);
|
||||||
#endif
|
#endif
|
||||||
#ifdef LIBXML_DOCB_ENABLED
|
#ifdef LIBXML_DOCB_ENABLED
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
initdocbDefaultSAXHandler (xmlSAXHandlerV1 *hdlr);
|
initdocbDefaultSAXHandler (xmlSAXHandlerV1 *hdlr);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ typedef xmlEntitiesTable *xmlEntitiesTablePtr;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef LIBXML_LEGACY_ENABLED
|
#ifdef LIBXML_LEGACY_ENABLED
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
xmlInitializePredefinedEntities (void);
|
xmlInitializePredefinedEntities (void);
|
||||||
#endif /* LIBXML_LEGACY_ENABLED */
|
#endif /* LIBXML_LEGACY_ENABLED */
|
||||||
@@ -112,6 +113,7 @@ XMLPUBFUN xmlEntityPtr XMLCALL
|
|||||||
xmlGetParameterEntity (xmlDocPtr doc,
|
xmlGetParameterEntity (xmlDocPtr doc,
|
||||||
const xmlChar *name);
|
const xmlChar *name);
|
||||||
#ifdef LIBXML_LEGACY_ENABLED
|
#ifdef LIBXML_LEGACY_ENABLED
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN const xmlChar * XMLCALL
|
XMLPUBFUN const xmlChar * XMLCALL
|
||||||
xmlEncodeEntities (xmlDocPtr doc,
|
xmlEncodeEntities (xmlDocPtr doc,
|
||||||
const xmlChar *input);
|
const xmlChar *input);
|
||||||
|
|||||||
@@ -996,13 +996,16 @@ XMLPUBFUN xmlParserCtxtPtr XMLCALL
|
|||||||
/*
|
/*
|
||||||
* Reading/setting optional parsing features.
|
* Reading/setting optional parsing features.
|
||||||
*/
|
*/
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN int XMLCALL
|
XMLPUBFUN int XMLCALL
|
||||||
xmlGetFeaturesList (int *len,
|
xmlGetFeaturesList (int *len,
|
||||||
const char **result);
|
const char **result);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN int XMLCALL
|
XMLPUBFUN int XMLCALL
|
||||||
xmlGetFeature (xmlParserCtxtPtr ctxt,
|
xmlGetFeature (xmlParserCtxtPtr ctxt,
|
||||||
const char *name,
|
const char *name,
|
||||||
void *result);
|
void *result);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN int XMLCALL
|
XMLPUBFUN int XMLCALL
|
||||||
xmlSetFeature (xmlParserCtxtPtr ctxt,
|
xmlSetFeature (xmlParserCtxtPtr ctxt,
|
||||||
const char *name,
|
const char *name,
|
||||||
|
|||||||
@@ -597,25 +597,34 @@ typedef void (*xmlEntityReferenceFunc) (xmlEntityPtr ent,
|
|||||||
xmlNodePtr firstNode,
|
xmlNodePtr firstNode,
|
||||||
xmlNodePtr lastNode);
|
xmlNodePtr lastNode);
|
||||||
|
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL xmlSetEntityReferenceFunc (xmlEntityReferenceFunc func);
|
XMLPUBFUN void XMLCALL xmlSetEntityReferenceFunc (xmlEntityReferenceFunc func);
|
||||||
|
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN xmlChar * XMLCALL
|
XMLPUBFUN xmlChar * XMLCALL
|
||||||
xmlParseQuotedString (xmlParserCtxtPtr ctxt);
|
xmlParseQuotedString (xmlParserCtxtPtr ctxt);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
xmlParseNamespace (xmlParserCtxtPtr ctxt);
|
xmlParseNamespace (xmlParserCtxtPtr ctxt);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN xmlChar * XMLCALL
|
XMLPUBFUN xmlChar * XMLCALL
|
||||||
xmlNamespaceParseNSDef (xmlParserCtxtPtr ctxt);
|
xmlNamespaceParseNSDef (xmlParserCtxtPtr ctxt);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN xmlChar * XMLCALL
|
XMLPUBFUN xmlChar * XMLCALL
|
||||||
xmlScanName (xmlParserCtxtPtr ctxt);
|
xmlScanName (xmlParserCtxtPtr ctxt);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN xmlChar * XMLCALL
|
XMLPUBFUN xmlChar * XMLCALL
|
||||||
xmlNamespaceParseNCName (xmlParserCtxtPtr ctxt);
|
xmlNamespaceParseNCName (xmlParserCtxtPtr ctxt);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL xmlParserHandleReference(xmlParserCtxtPtr ctxt);
|
XMLPUBFUN void XMLCALL xmlParserHandleReference(xmlParserCtxtPtr ctxt);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN xmlChar * XMLCALL
|
XMLPUBFUN xmlChar * XMLCALL
|
||||||
xmlNamespaceParseQName (xmlParserCtxtPtr ctxt,
|
xmlNamespaceParseQName (xmlParserCtxtPtr ctxt,
|
||||||
xmlChar **prefix);
|
xmlChar **prefix);
|
||||||
/**
|
/**
|
||||||
* Entities
|
* Entities
|
||||||
*/
|
*/
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN xmlChar * XMLCALL
|
XMLPUBFUN xmlChar * XMLCALL
|
||||||
xmlDecodeEntities (xmlParserCtxtPtr ctxt,
|
xmlDecodeEntities (xmlParserCtxtPtr ctxt,
|
||||||
int len,
|
int len,
|
||||||
@@ -623,6 +632,7 @@ XMLPUBFUN xmlChar * XMLCALL
|
|||||||
xmlChar end,
|
xmlChar end,
|
||||||
xmlChar end2,
|
xmlChar end2,
|
||||||
xmlChar end3);
|
xmlChar end3);
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
xmlHandleEntity (xmlParserCtxtPtr ctxt,
|
xmlHandleEntity (xmlParserCtxtPtr ctxt,
|
||||||
xmlEntityPtr entity);
|
xmlEntityPtr entity);
|
||||||
|
|||||||
@@ -763,6 +763,7 @@ XMLPUBFUN xmlDtdPtr XMLCALL
|
|||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
xmlFreeDtd (xmlDtdPtr cur);
|
xmlFreeDtd (xmlDtdPtr cur);
|
||||||
#ifdef LIBXML_LEGACY_ENABLED
|
#ifdef LIBXML_LEGACY_ENABLED
|
||||||
|
XML_DEPRECATED
|
||||||
XMLPUBFUN xmlNsPtr XMLCALL
|
XMLPUBFUN xmlNsPtr XMLCALL
|
||||||
xmlNewGlobalNs (xmlDocPtr doc,
|
xmlNewGlobalNs (xmlDocPtr doc,
|
||||||
const xmlChar *href,
|
const xmlChar *href,
|
||||||
|
|||||||
Reference in New Issue
Block a user