diff options
author | Valery Febvre <vfebvre at easter-eggs.com> | 2004-05-13 23:58:27 +0000 |
---|---|---|
committer | Valery Febvre <vfebvre at easter-eggs.com> | 2004-05-13 23:58:27 +0000 |
commit | 7feb79492a08ef70adb2688b1277fc7c7e49e4d8 (patch) | |
tree | 73c6ac1adb787200d0d4cfd98542b45b7bc2f6d0 /python/xml | |
parent | a126ff51729dfd323186ab19c71dc84a1eba74ff (diff) | |
download | lasso-7feb79492a08ef70adb2688b1277fc7c7e49e4d8.tar.gz lasso-7feb79492a08ef70adb2688b1277fc7c7e49e4d8.tar.xz lasso-7feb79492a08ef70adb2688b1277fc7c7e49e4d8.zip |
node_export and node_export_from_base64() functions added
Diffstat (limited to 'python/xml')
-rw-r--r-- | python/xml/py_xml.c | 30 | ||||
-rw-r--r-- | python/xml/py_xml.h | 2 |
2 files changed, 32 insertions, 0 deletions
diff --git a/python/xml/py_xml.c b/python/xml/py_xml.c index c1a7a397..d7a44583 100644 --- a/python/xml/py_xml.c +++ b/python/xml/py_xml.c @@ -61,6 +61,36 @@ PyObject *node_dump(PyObject *self, PyObject *args) { return (xmlCharPtr_wrap(ret)); } +PyObject *node_export(PyObject *self, PyObject *args) { + PyObject *node_obj; + xmlChar *ret; + + if (CheckArgs(args, "O:node_export")) { + if(!PyArg_ParseTuple(args, (char *) "O:node_export", &node_obj)) + return NULL; + } + else return NULL; + + ret = lasso_node_export(LassoNode_get(node_obj)); + + return (xmlCharPtr_wrap(ret)); +} + +PyObject *node_export_to_base64(PyObject *self, PyObject *args) { + PyObject *node_obj; + xmlChar *ret; + + if (CheckArgs(args, "O:node_export_to_base64")) { + if(!PyArg_ParseTuple(args, (char *) "O:node_export_to_base64", &node_obj)) + return NULL; + } + else return NULL; + + ret = lasso_node_export_to_base64(LassoNode_get(node_obj)); + + return (xmlCharPtr_wrap(ret)); +} + PyObject *node_export_to_query(PyObject *self, PyObject *args) { PyObject *node_obj; guint sign_method; diff --git a/python/xml/py_xml.h b/python/xml/py_xml.h index 42ff3b82..82d9fed4 100644 --- a/python/xml/py_xml.h +++ b/python/xml/py_xml.h @@ -37,6 +37,8 @@ typedef struct { PyObject *LassoNode_wrap(LassoNode *node); PyObject *node_dump(PyObject *self, PyObject *args); +PyObject *node_export(PyObject *self, PyObject *args); +PyObject *node_export_to_base64(PyObject *self, PyObject *args); PyObject *node_export_to_query(PyObject *self, PyObject *args); PyObject *node_export_to_soap(PyObject *self, PyObject *args); PyObject *node_get_attr_value(PyObject *self, PyObject *args); |