diff options
Diffstat (limited to 'python/xml/py_xml.c')
-rw-r--r-- | python/xml/py_xml.c | 30 |
1 files changed, 30 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; |