diff options
Diffstat (limited to 'python/types.c')
-rw-r--r-- | python/types.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/python/types.c b/python/types.c index fa91a65..329d270 100644 --- a/python/types.c +++ b/python/types.c @@ -478,6 +478,26 @@ libxml_xmlXPathObjectPtrConvert(PyObject * obj) } PyObject * +libxml_xmlValidCtxtPtrWrap(xmlValidCtxtPtr valid) +{ + PyObject *ret; + +#ifdef DEBUG + printf("libxml_xmlValidCtxtPtrWrap: valid = %p\n", valid); +#endif + if (valid == NULL) { + Py_INCREF(Py_None); + return (Py_None); + } + + ret = + PyCObject_FromVoidPtrAndDesc((void *) valid, + (char *) "xmlValidCtxtPtr", NULL); + + return (ret); +} + +PyObject * libxml_xmlCatalogPtrWrap(xmlCatalogPtr catal) { PyObject *ret; |