summaryrefslogtreecommitdiff
path: root/python/libxml.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2004-07-02 12:23:44 +0000
committerDaniel Veillard <veillard@src.gnome.org>2004-07-02 12:23:44 +0000
commit529233ccdd43203fd74ec18a1d5a071c122c6e46 (patch)
tree7b1a0387795846c560bbf5fc1c0df2ff543b58cd /python/libxml.c
parentf93a866079364a006189683eaa07f94c867389d1 (diff)
downloadlibxml2-529233ccdd43203fd74ec18a1d5a071c122c6e46.tar.gz
some updates with memory debugging facilities while messing with libxslt
* xmlmemory.c python/libxml.c python/libxml2-python-api.xml: some updates with memory debugging facilities while messing with libxslt python bindings Daniel
Diffstat (limited to 'python/libxml.c')
-rw-r--r--python/libxml.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/python/libxml.c b/python/libxml.c
index eb44a2b6..b58c526c 100644
--- a/python/libxml.c
+++ b/python/libxml.c
@@ -79,6 +79,18 @@ static void
libxml_xmlErrorInitialize(void); /* forward declare */
PyObject *
+libxml_xmlMemoryUsed(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
+{
+ long ret;
+ PyObject *py_retval;
+
+ ret = xmlMemUsed();
+
+ py_retval = libxml_longWrap(ret);
+ return (py_retval);
+}
+
+PyObject *
libxml_xmlDebugMemory(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
{
int activate;