summaryrefslogtreecommitdiffstats
path: root/python/xml/py_xml.c
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-04-13 10:15:54 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-04-13 10:15:54 +0000
commitf1d2812a740a1463bf920e6501e14baafe632aed (patch)
tree5685eae31fbb0aea42b821a0eb4b95c2ceffefbe /python/xml/py_xml.c
parentda44bfe52bb580448477d8b91e59dcc6bc47e914 (diff)
downloadlasso-f1d2812a740a1463bf920e6501e14baafe632aed.tar.gz
lasso-f1d2812a740a1463bf920e6501e14baafe632aed.tar.xz
lasso-f1d2812a740a1463bf920e6501e14baafe632aed.zip
*** empty log message ***
Diffstat (limited to 'python/xml/py_xml.c')
-rw-r--r--python/xml/py_xml.c52
1 files changed, 52 insertions, 0 deletions
diff --git a/python/xml/py_xml.c b/python/xml/py_xml.c
index 1ce046eb..d2816ceb 100644
--- a/python/xml/py_xml.c
+++ b/python/xml/py_xml.c
@@ -60,6 +60,40 @@ PyObject *node_dump(PyObject *self, PyObject *args) {
return (Py_None);
}
+PyObject *node_get_attr_value(PyObject *self, PyObject *args) {
+ PyObject *node_obj;
+ const xmlChar *name;
+ xmlChar *ret;
+
+ if (CheckArgs(args, "OS:node_get_attr_value")) {
+ if(!PyArg_ParseTuple(args, (char *) "Os:node_get_attr_value",
+ &node_obj, &name))
+ return NULL;
+ }
+ else return NULL;
+
+ ret = lasso_node_get_attr_value(LassoNode_get(node_obj), name);
+
+ return (xmlCharPtr_wrap(ret));
+}
+
+PyObject *node_get_child(PyObject *self, PyObject *args) {
+ PyObject *node_obj;
+ const xmlChar *name;
+ LassoNode *ret;
+
+ if (CheckArgs(args, "OS:node_get_child")) {
+ if(!PyArg_ParseTuple(args, (char *) "Os:node_get_child",
+ &node_obj, &name))
+ return NULL;
+ }
+ else return NULL;
+
+ ret = lasso_node_get_child(LassoNode_get(node_obj), name);
+
+ return (LassoNode_wrap(ret));
+}
+
PyObject *node_unref(PyObject *self, PyObject *args) {
PyObject *node_obj;
@@ -94,3 +128,21 @@ PyObject *node_url_encode(PyObject *self, PyObject *args) {
return (charPtr_wrap(ret));
}
+
+PyObject *node_verify_signature(PyObject *self, PyObject *args) {
+ PyObject *node_obj;
+ const gchar *certificate_file;
+ gint ret;
+
+ if (CheckArgs(args, "OS:node_verify_signature")) {
+ if(!PyArg_ParseTuple(args, (char *) "Os:node_verify_signature",
+ &node_obj, &certificate_file))
+ return NULL;
+ }
+ else return NULL;
+
+ ret = lasso_node_verify_signature(LassoNode_get(node_obj),
+ certificate_file);
+
+ return (int_wrap(ret));
+}