summaryrefslogtreecommitdiffstats
path: root/python/xml/py_lib_logout_response.c
diff options
context:
space:
mode:
authorNicolas Clapies <nclapies@entrouvert.com>2004-05-05 17:06:35 +0000
committerNicolas Clapies <nclapies@entrouvert.com>2004-05-05 17:06:35 +0000
commit72ae1962b53001874dfd435ce6013b111b4fac5d (patch)
tree7c4fc90c260f6d9230f674531f24a921434b0732 /python/xml/py_lib_logout_response.c
parentb57e1b705be534e86a4273e036ab7c94f38ff2d0 (diff)
downloadlasso-72ae1962b53001874dfd435ce6013b111b4fac5d.tar.gz
lasso-72ae1962b53001874dfd435ce6013b111b4fac5d.tar.xz
lasso-72ae1962b53001874dfd435ce6013b111b4fac5d.zip
binding for low level of logout request and response C class
Diffstat (limited to 'python/xml/py_lib_logout_response.c')
-rw-r--r--python/xml/py_lib_logout_response.c50
1 files changed, 50 insertions, 0 deletions
diff --git a/python/xml/py_lib_logout_response.c b/python/xml/py_lib_logout_response.c
new file mode 100644
index 00000000..d86d98da
--- /dev/null
+++ b/python/xml/py_lib_logout_response.c
@@ -0,0 +1,50 @@
+/* $Id$
+ *
+ * PyLasso -- Python bindings for Lasso library
+ *
+ * Copyright (C) 2004 Entr'ouvert
+ * http://lasso.labs.libre-entreprise.org
+ *
+ * Authors: Valery Febvre <vfebvre@easter-eggs.com>
+ * Nicolas Clapies <nclapies@entrouvert.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#include "../lassomod.h"
+
+#include "py_lib_logout_response.h"
+
+PyObject *LassoLibLogoutResponse_wrap(LassoLibLogoutResponse *response) {
+ PyObject *ret;
+
+ if (response == NULL) {
+ Py_INCREF(Py_None);
+ return (Py_None);
+ }
+ ret = PyCObject_FromVoidPtrAndDesc((void *) response,
+ (char *) "LassoLibLogoutResponse *", NULL);
+ return (ret);
+}
+
+/******************************************************************************/
+
+PyObject *lib_logout_response_new(PyObject *self, PyObject *args) {
+ LassoNode *response;
+
+ response = lasso_lib_logout_response_new();
+
+ return (LassoLibLogoutResponse_wrap(LASSO_LIB_LOGOUT_RESPONSE(response)));
+}