mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-17 18:21:05 +03:00
applied and fixed a patch from Stephane Bibould to provide per parser
* python/generator.py python/libxml.c python/libxml.py python/libxml_wrap.h python/types.c: applied and fixed a patch from Stephane Bibould to provide per parser error handlers at the Python level. * python/tests/Makefile.am python/tests/ctxterror.py: added a regression test for it. Daniel
This commit is contained in:
@ -149,3 +149,17 @@ PyObject * libxml_xmlRegexpPtrWrap(xmlRegexpPtr regexp);
|
||||
PyObject * libxml_xmlTextReaderPtrWrap(xmlTextReaderPtr reader);
|
||||
|
||||
xmlXPathObjectPtr libxml_xmlXPathObjectPtrConvert(PyObject * obj);
|
||||
|
||||
/*
|
||||
* Data structure that makes the link from the parser context
|
||||
* to the python wrapper.
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
PyObject *errorFunc;
|
||||
PyObject *errorFuncArg;
|
||||
PyObject *warningFunc;
|
||||
PyObject *warningFuncArg;
|
||||
} xmlParserCtxtPyCtxt;
|
||||
typedef xmlParserCtxtPyCtxt *xmlParserCtxtPyCtxtPtr;
|
||||
|
||||
|
Reference in New Issue
Block a user