aboutsummaryrefslogtreecommitdiffstats
path: root/python/libxml_wrap.h
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-02-03 15:08:05 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-02-03 15:08:05 +0000
commit3ce5257b293ed75d8feb18ed7ab18ea2b52510bd (patch)
treee29dea7765de467ddc93873b5886f45c981c7fcf /python/libxml_wrap.h
parentcfb0546244beb0b3ae297f8dee0fa9bfdc2e1115 (diff)
downloadandroid_external_libxml2-3ce5257b293ed75d8feb18ed7ab18ea2b52510bd.tar.gz
android_external_libxml2-3ce5257b293ed75d8feb18ed7ab18ea2b52510bd.tar.bz2
android_external_libxml2-3ce5257b293ed75d8feb18ed7ab18ea2b52510bd.zip
cleanup added class for parser context, added first cut for push mode
* python/Makefile.am python/types.c: cleanup * python/libxml.c python/libxml.py python/libxml_wrap.h python/generator.py python/libxml2-python-api.xml python/libxml2class.txt: added class for parser context, added first cut for push mode support. Added a framework to generate accessors functions. * python/tests/Makefile.am python/tests/push.py: added a push test Daniel
Diffstat (limited to 'python/libxml_wrap.h')
-rw-r--r--python/libxml_wrap.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/libxml_wrap.h b/python/libxml_wrap.h
index 972e871e..d6d89aa4 100644
--- a/python/libxml_wrap.h
+++ b/python/libxml_wrap.h
@@ -1,3 +1,4 @@
+#include <Python.h>
#include <libxml/tree.h>
#include <libxml/parser.h>
#include <libxml/parserInternals.h>
@@ -27,6 +28,12 @@ typedef struct {
xmlXPathContextPtr obj;
} PyxmlXPathContext_Object;
+#define PyparserCtxt_Get(v) (((PyparserCtxt_Object *)(v))->obj)
+typedef struct {
+ PyObject_HEAD
+ xmlParserCtxtPtr obj;
+} PyparserCtxt_Object;
+
PyObject * libxml_intWrap(int val);
PyObject * libxml_xmlCharPtrWrap(xmlChar *str);
PyObject * libxml_constxmlCharPtrWrap(const xmlChar *str);
@@ -40,5 +47,7 @@ PyObject * libxml_xmlAttributePtrWrap(xmlAttributePtr ns);
PyObject * libxml_xmlElementPtrWrap(xmlElementPtr ns);
PyObject * libxml_doubleWrap(double val);
PyObject * libxml_xmlXPathContextPtrWrap(xmlXPathContextPtr ctxt);
+PyObject * libxml_xmlParserCtxtPtrWrap(xmlParserCtxtPtr ctxt);
PyObject * libxml_xmlXPathObjectPtrWrap(xmlXPathObjectPtr obj);
+xmlXPathObjectPtr libxml_xmlXPathObjectPtrConvert(PyObject * obj);