diff options
| author | Valery Febvre <vfebvre at easter-eggs.com> | 2004-04-08 02:44:16 +0000 |
|---|---|---|
| committer | Valery Febvre <vfebvre at easter-eggs.com> | 2004-04-08 02:44:16 +0000 |
| commit | a914a109350e3285e6c8118644ba2162cd8632ad (patch) | |
| tree | fcc3ef9ee550b083d4060b741bc7c436bb8b92b0 /python/xml | |
| parent | b73d899efd03f3058b752e0f64061f1f7e308fc9 (diff) | |
| download | lasso-a914a109350e3285e6c8118644ba2162cd8632ad.tar.gz lasso-a914a109350e3285e6c8118644ba2162cd8632ad.tar.xz lasso-a914a109350e3285e6c8118644ba2162cd8632ad.zip | |
*** empty log message ***
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__ */ |
