summaryrefslogtreecommitdiff
path: root/python/libxml_wrap.h
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2013-02-25 15:54:25 +0800
committerDaniel Veillard <veillard@redhat.com>2013-02-25 15:54:25 +0800
commit48da90bc4a3809728d08ee9ee8da21d044fbca82 (patch)
tree3a767c8f227cedeb1e4d7ae226281080a8f4ac5d /python/libxml_wrap.h
parente32ceb93f425ee852021ccda157fca923a1046b0 (diff)
downloadlibxml2-48da90bc4a3809728d08ee9ee8da21d044fbca82.tar.gz
Python binding for xmlRegisterInputCallback
It is possible to make xmlIO handle any protocol by means of xmlRegisterInputCallback(). However, that function is currently only available in C API. So, the natural solution seems to be implementing Python bindings for the xmlRegisterInputCallback. * python/generator.py: skip xmlPopInputCallbacks * python/libxml.c python/libxml.py python/libxml_wrap.h: implement the wrappers * python/tests/input_callback.py python/tests/Makefile.am: also add a test case
Diffstat (limited to 'python/libxml_wrap.h')
-rw-r--r--python/libxml_wrap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/libxml_wrap.h b/python/libxml_wrap.h
index eaa5e969..ac5a6264 100644
--- a/python/libxml_wrap.h
+++ b/python/libxml_wrap.h
@@ -247,3 +247,5 @@ PyObject * libxml_xmlSchemaValidCtxtPtrWrap(xmlSchemaValidCtxtPtr valid);
#endif /* LIBXML_SCHEMAS_ENABLED */
PyObject * libxml_xmlErrorPtrWrap(xmlErrorPtr error);
PyObject * libxml_xmlSchemaSetValidErrors(PyObject * self, PyObject * args);
+PyObject * libxml_xmlRegisterInputCallback(PyObject *self, PyObject *args);
+PyObject * libxml_xmlUnregisterInputCallback(PyObject *self, PyObject *args);