diff options
Diffstat (limited to 'python/xml')
| -rw-r--r-- | python/xml/py_xml.c | 19 | ||||
| -rw-r--r-- | python/xml/py_xml.h | 1 |
2 files changed, 20 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)); +} diff --git a/python/xml/py_xml.h b/python/xml/py_xml.h index b72dbe55..a1a186ab 100644 --- a/python/xml/py_xml.h +++ b/python/xml/py_xml.h @@ -37,5 +37,6 @@ PyObject *LassoNode_wrap(LassoNode *node); PyObject *node_dump(PyObject *self, PyObject *args); PyObject *node_unref(PyObject *self, PyObject *args); +PyObject *node_url_encode(PyObject *self, PyObject *args); #endif /* __PYLASSO_PY_XML_H__ */ |
