Daniel Veillard | 3ce5257 | 2002-02-03 15:08:05 +0000 | [diff] [blame] | 1 | #include <Python.h> |
Daniel Veillard | d2897fd | 2002-01-30 16:37:32 +0000 | [diff] [blame] | 2 | #include <libxml/tree.h> |
| 3 | #include <libxml/parser.h> |
| 4 | #include <libxml/parserInternals.h> |
| 5 | #include <libxml/catalog.h> |
| 6 | #include <libxml/threads.h> |
| 7 | #include <libxml/nanoftp.h> |
| 8 | #include <libxml/nanohttp.h> |
| 9 | #include <libxml/uri.h> |
| 10 | #include <libxml/xpath.h> |
| 11 | #include <libxml/xpathInternals.h> |
| 12 | #include <libxml/debugXML.h> |
Daniel Veillard | 96fe095 | 2002-01-30 20:52:23 +0000 | [diff] [blame] | 13 | #include <libxml/HTMLparser.h> |
| 14 | #include <libxml/HTMLtree.h> |
| 15 | #include <libxml/xinclude.h> |
Daniel Veillard | 1971ee2 | 2002-01-31 20:29:19 +0000 | [diff] [blame] | 16 | #include <libxml/xpointer.h> |
Daniel Veillard | 96fe095 | 2002-01-30 20:52:23 +0000 | [diff] [blame] | 17 | |
| 18 | #define PyxmlNode_Get(v) (((PyxmlNode_Object *)(v))->obj) |
| 19 | |
| 20 | typedef struct { |
| 21 | PyObject_HEAD |
| 22 | xmlNodePtr obj; |
| 23 | } PyxmlNode_Object; |
Daniel Veillard | d2897fd | 2002-01-30 16:37:32 +0000 | [diff] [blame] | 24 | |
Daniel Veillard | 1971ee2 | 2002-01-31 20:29:19 +0000 | [diff] [blame] | 25 | #define PyxmlXPathContext_Get(v) (((PyxmlXPathContext_Object *)(v))->obj) |
| 26 | typedef struct { |
| 27 | PyObject_HEAD |
| 28 | xmlXPathContextPtr obj; |
| 29 | } PyxmlXPathContext_Object; |
| 30 | |
Daniel Veillard | 3ce5257 | 2002-02-03 15:08:05 +0000 | [diff] [blame] | 31 | #define PyparserCtxt_Get(v) (((PyparserCtxt_Object *)(v))->obj) |
| 32 | typedef struct { |
| 33 | PyObject_HEAD |
| 34 | xmlParserCtxtPtr obj; |
| 35 | } PyparserCtxt_Object; |
| 36 | |
Daniel Veillard | d2897fd | 2002-01-30 16:37:32 +0000 | [diff] [blame] | 37 | PyObject * libxml_intWrap(int val); |
Daniel Veillard | 4e1b26c | 2002-02-03 20:13:06 +0000 | [diff] [blame^] | 38 | PyObject * libxml_longWrap(long val); |
Daniel Veillard | 1971ee2 | 2002-01-31 20:29:19 +0000 | [diff] [blame] | 39 | PyObject * libxml_xmlCharPtrWrap(xmlChar *str); |
| 40 | PyObject * libxml_constxmlCharPtrWrap(const xmlChar *str); |
| 41 | PyObject * libxml_charPtrWrap(char *str); |
| 42 | PyObject * libxml_constcharPtrWrap(const char *str); |
Daniel Veillard | d2897fd | 2002-01-30 16:37:32 +0000 | [diff] [blame] | 43 | PyObject * libxml_xmlDocPtrWrap(xmlDocPtr doc); |
| 44 | PyObject * libxml_xmlNodePtrWrap(xmlNodePtr node); |
| 45 | PyObject * libxml_xmlAttrPtrWrap(xmlAttrPtr attr); |
Daniel Veillard | 1971ee2 | 2002-01-31 20:29:19 +0000 | [diff] [blame] | 46 | PyObject * libxml_xmlNsPtrWrap(xmlNsPtr ns); |
| 47 | PyObject * libxml_xmlAttributePtrWrap(xmlAttributePtr ns); |
| 48 | PyObject * libxml_xmlElementPtrWrap(xmlElementPtr ns); |
Daniel Veillard | 96fe095 | 2002-01-30 20:52:23 +0000 | [diff] [blame] | 49 | PyObject * libxml_doubleWrap(double val); |
Daniel Veillard | 1971ee2 | 2002-01-31 20:29:19 +0000 | [diff] [blame] | 50 | PyObject * libxml_xmlXPathContextPtrWrap(xmlXPathContextPtr ctxt); |
Daniel Veillard | 3ce5257 | 2002-02-03 15:08:05 +0000 | [diff] [blame] | 51 | PyObject * libxml_xmlParserCtxtPtrWrap(xmlParserCtxtPtr ctxt); |
Daniel Veillard | 1971ee2 | 2002-01-31 20:29:19 +0000 | [diff] [blame] | 52 | PyObject * libxml_xmlXPathObjectPtrWrap(xmlXPathObjectPtr obj); |
Daniel Veillard | 96fe095 | 2002-01-30 20:52:23 +0000 | [diff] [blame] | 53 | |
Daniel Veillard | 3ce5257 | 2002-02-03 15:08:05 +0000 | [diff] [blame] | 54 | xmlXPathObjectPtr libxml_xmlXPathObjectPtrConvert(PyObject * obj); |