From 8944a5f52d6d49ad646837e4595132500ddaccfe Mon Sep 17 00:00:00 2001 From: Valery Febvre Date: Mon, 2 Aug 2004 23:59:26 +0000 Subject: - Replaced some charPtrConst_wrap() calls by charPtr_wrap() - Added GPtrArray_wrap() function to wrap GPtrArray into Python list. - Added session_getattr() function, we can get now providerIDs and is_dirty properties of Session objects. --- python/wrap_objs.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'python/wrap_objs.h') diff --git a/python/wrap_objs.h b/python/wrap_objs.h index 3e779ab1..7b2e5e62 100644 --- a/python/wrap_objs.h +++ b/python/wrap_objs.h @@ -49,15 +49,17 @@ typedef struct { /* Functions to wrap Python objects -> C objects */ #define PythonFile_get(v) (((v) == Py_None) ? NULL : (PyFile_Check(v) ? (PyFile_AsFile(v)) : stdout)) -xmlChar **PythonStringList_get(PyObject *list_obj); -GPtrArray *PythonStringList2_get(PyObject *list_obj); +xmlChar** PythonStringList_get(PyObject *list_obj); +GPtrArray* GPtrArray_get(PyObject *list_obj); PyObject *int_wrap(int val); PyObject *charPtr_wrap(char *str); PyObject *charPtrConst_wrap(const char *str); +PyObject* GPtrArray_wrap(GPtrArray *array); + PyObject *xmlCharPtr_wrap(xmlChar *str); -PyObject *wrap_xmlCharPtrConst(const xmlChar *str); +PyObject *xmlCharPtrConst_wrap(const xmlChar *str); PyObject *wrap_xmlDocPtr(xmlDocPtr doc); PyObject *wrap_xmlNodePtr(xmlNodePtr node); PyObject *wrap_xmlNodeSetPtr(xmlNodeSetPtr nset); -- cgit