diff options
author | Mike Hommey <glandium@debian.org> | 2006-06-08 22:38:16 +0200 |
---|---|---|
committer | Mike Hommey <glandium@debian.org> | 2006-06-08 22:38:16 +0200 |
commit | ef381f99921ea9fe00a07836b93f2a2bf865ca17 (patch) | |
tree | 62ec8494b6ba15713636b2731dd2f39cda762bc6 /python/libxml2-py.c | |
parent | 6b7b7b4a4490d2cde163e9d5fe7c04ce540022b0 (diff) | |
parent | a7e9d3f37d5e9fba4b9acaa43e7c12b6d9a669ae (diff) | |
download | libxml2-debian/2.6.26.dfsg-1.tar.gz |
* New upstream release.debian/2.6.26.dfsg-1
* debian/rules:
+ Added -fno-strict-aliasing to the CFLAGS.
+ Use dpkg-architecture to feed configure.
+ Bumped shlibs to current version, since new symbol for XPath cache has
been added.
* debian/control: Bumped Standards-Version to 3.7.2.0. No changes required.
Diffstat (limited to 'python/libxml2-py.c')
-rw-r--r-- | python/libxml2-py.c | 21 |
1 files changed, 21 insertions, 0 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) { |