summaryrefslogtreecommitdiffstats
path: root/python/xml/py_xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'python/xml/py_xml.c')
-rw-r--r--python/xml/py_xml.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/python/xml/py_xml.c b/python/xml/py_xml.c
index 49dd7c46..1ce046eb 100644
--- a/python/xml/py_xml.c
+++ b/python/xml/py_xml.c
@@ -75,3 +75,22 @@ PyObject *node_unref(PyObject *self, PyObject *args) {
Py_INCREF(Py_None);
return (Py_None);
}
+
+PyObject *node_url_encode(PyObject *self, PyObject *args) {
+ PyObject *node_obj;
+ guint sign_method;
+ const gchar *private_key_file;
+ gchar *ret;
+
+ if (CheckArgs(args, "OIS:node_unref")) {
+ if(!PyArg_ParseTuple(args, (char *) "Ois:node_url_encode",
+ &node_obj, &sign_method, &private_key_file))
+ return NULL;
+ }
+ else return NULL;
+
+ ret = lasso_node_url_encode(LassoNode_get(node_obj),
+ sign_method, private_key_file);
+
+ return (charPtr_wrap(ret));
+}