diff options
| author | Mike Hommey <glandium@debian.org> | 2006-06-08 10:59:26 +0200 |
|---|---|---|
| committer | Mike Hommey <glandium@debian.org> | 2006-06-08 10:59:26 +0200 |
| commit | a7e9d3f37d5e9fba4b9acaa43e7c12b6d9a669ae (patch) | |
| tree | f70d9afbc2bc584860755cb0f933a4405ee3c338 /python | |
| parent | 07a67fa4bcc1b8bf2651ab41e5fc54a05059cf7e (diff) | |
| download | libxml2-a7e9d3f37d5e9fba4b9acaa43e7c12b6d9a669ae.tar.gz | |
Load /tmp/libxml2-2.6.26 intoupstream/2.6.26.dfsg
libxml2/branches/upstream/current.
Diffstat (limited to 'python')
| -rw-r--r-- | python/libxml2-py.c | 21 | ||||
| -rwxr-xr-x | python/setup.py | 2 |
2 files changed, 22 insertions, 1 deletions
diff --git a/python/libxml2-py.c b/python/libxml2-py.c index 19617ce..e0559a0 100644 --- a/python/libxml2-py.c +++ b/python/libxml2-py.c @@ -10103,6 +10103,27 @@ libxml_htmlReadFile(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { } #endif /* defined(LIBXML_HTML_ENABLED) */ +#if defined(LIBXML_XPATH_ENABLED) +PyObject * +libxml_xmlXPathContextSetCache(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { + PyObject *py_retval; + int c_retval; + xmlXPathContextPtr ctxt; + PyObject *pyobj_ctxt; + int active; + int value; + int options; + + if (!PyArg_ParseTuple(args, (char *)"Oiii:xmlXPathContextSetCache", &pyobj_ctxt, &active, &value, &options)) + return(NULL); + ctxt = (xmlXPathContextPtr) PyxmlXPathContext_Get(pyobj_ctxt); + + c_retval = xmlXPathContextSetCache(ctxt, active, value, options); + py_retval = libxml_intWrap((int) c_retval); + return(py_retval); +} + +#endif /* defined(LIBXML_XPATH_ENABLED) */ #if defined(LIBXML_UNICODE_ENABLED) PyObject * libxml_xmlUCSIsDingbats(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) { diff --git a/python/setup.py b/python/setup.py index 2b715c9..99def88 100755 --- a/python/setup.py +++ b/python/setup.py @@ -226,7 +226,7 @@ else: setup (name = "libxml2-python", # On *nix, the version number is created from setup.py.in # On windows, it is set by configure.js - version = "2.6.24", + version = "2.6.26", description = descr, author = "Daniel Veillard", author_email = "veillard@redhat.com", |
