mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
parser: Support custom charset conversion implementations
Implement xmlCtxtSetCharEncConvImpl. I agree that the name is terrible.
This commit is contained in:
@@ -452,6 +452,9 @@ struct _xmlParserCtxt {
|
||||
|
||||
xmlResourceLoader resourceLoader XML_DEPRECATED_MEMBER;
|
||||
void *resourceCtxt XML_DEPRECATED_MEMBER;
|
||||
|
||||
xmlCharEncConvImpl convImpl XML_DEPRECATED_MEMBER;
|
||||
void *convCtxt XML_DEPRECATED_MEMBER;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -1438,6 +1441,10 @@ XMLPUBFUN void
|
||||
xmlCtxtSetResourceLoader(xmlParserCtxtPtr ctxt,
|
||||
xmlResourceLoader loader,
|
||||
void *vctxt);
|
||||
XMLPUBFUN void
|
||||
xmlCtxtSetCharEncConvImpl(xmlParserCtxtPtr ctxt,
|
||||
xmlCharEncConvImpl impl,
|
||||
void *vctxt);
|
||||
XMLPUBFUN void
|
||||
xmlCtxtSetMaxAmplification(xmlParserCtxtPtr ctxt,
|
||||
unsigned maxAmpl);
|
||||
|
||||
Reference in New Issue
Block a user