mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-20 03:52:25 +03:00
io: Deprecate xmlOutputBuffer members
This commit is contained in:
@@ -148,16 +148,20 @@ struct _xmlParserInputBuffer {
|
|||||||
* Output buffer
|
* Output buffer
|
||||||
*/
|
*/
|
||||||
struct _xmlOutputBuffer {
|
struct _xmlOutputBuffer {
|
||||||
void* context;
|
void* context XML_DEPRECATED_MEMBER;
|
||||||
xmlOutputWriteCallback writecallback;
|
xmlOutputWriteCallback writecallback XML_DEPRECATED_MEMBER;
|
||||||
xmlOutputCloseCallback closecallback;
|
xmlOutputCloseCallback 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 or ISOLatin */
|
/* Local buffer encoded in UTF-8 or ISOLatin */
|
||||||
xmlBuf *conv; /* if encoder != NULL buffer for output */
|
xmlBuf *buffer XML_DEPRECATED_MEMBER;
|
||||||
int written; /* total number of byte written */
|
/* if encoder != NULL buffer for output */
|
||||||
int error;
|
xmlBuf *conv XML_DEPRECATED_MEMBER;
|
||||||
|
/* total number of byte written */
|
||||||
|
int written XML_DEPRECATED_MEMBER;
|
||||||
|
int error XML_DEPRECATED_MEMBER;
|
||||||
};
|
};
|
||||||
#endif /* LIBXML_OUTPUT_ENABLED */
|
#endif /* LIBXML_OUTPUT_ENABLED */
|
||||||
|
|
||||||
|
@@ -516,6 +516,7 @@ libxml_outputBufferGetPythonFile(ATTRIBUTE_UNUSED PyObject *self,
|
|||||||
Py_INCREF(Py_None);
|
Py_INCREF(Py_None);
|
||||||
return(Py_None);
|
return(Py_None);
|
||||||
}
|
}
|
||||||
|
XML_IGNORE_DEPRECATION_WARNINGS
|
||||||
if (obj->closecallback != xmlPythonFileClose) {
|
if (obj->closecallback != xmlPythonFileClose) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"outputBufferGetPythonFile: not a python file wrapper\n");
|
"outputBufferGetPythonFile: not a python file wrapper\n");
|
||||||
@@ -527,6 +528,7 @@ libxml_outputBufferGetPythonFile(ATTRIBUTE_UNUSED PyObject *self,
|
|||||||
Py_INCREF(Py_None);
|
Py_INCREF(Py_None);
|
||||||
return(Py_None);
|
return(Py_None);
|
||||||
}
|
}
|
||||||
|
XML_POP_WARNINGS
|
||||||
Py_INCREF(file);
|
Py_INCREF(file);
|
||||||
return(file);
|
return(file);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user