summaryrefslogtreecommitdiffstats
path: root/python/protocols
diff options
context:
space:
mode:
authorNicolas Clapies <nclapies@entrouvert.com>2004-04-27 09:35:08 +0000
committerNicolas Clapies <nclapies@entrouvert.com>2004-04-27 09:35:08 +0000
commit4690f331ef2bdce1bc4d1b945ab4ad9e4405a9e5 (patch)
tree129aa2edbba364c7e5044c7bff1368797a97d312 /python/protocols
parent626ccdc6a7ebc47b2365741171550d61c9249a34 (diff)
downloadlasso-4690f331ef2bdce1bc4d1b945ab4ad9e4405a9e5.tar.gz
lasso-4690f331ef2bdce1bc4d1b945ab4ad9e4405a9e5.tar.xz
lasso-4690f331ef2bdce1bc4d1b945ab4ad9e4405a9e5.zip
initial version
Diffstat (limited to 'python/protocols')
-rw-r--r--python/protocols/py_federation_termination_notification.c80
-rw-r--r--python/protocols/py_federation_termination_notification.h42
-rw-r--r--python/protocols/py_logout_request.c80
-rw-r--r--python/protocols/py_logout_request.h42
-rw-r--r--python/protocols/py_logout_response.c80
-rw-r--r--python/protocols/py_logout_response.h41
-rw-r--r--python/protocols/py_register_name_identifier_request.c96
-rw-r--r--python/protocols/py_register_name_identifier_request.h42
-rw-r--r--python/protocols/py_register_name_identifier_response.c80
-rw-r--r--python/protocols/py_register_name_identifier_response.h42
10 files changed, 625 insertions, 0 deletions
diff --git a/python/protocols/py_federation_termination_notification.c b/python/protocols/py_federation_termination_notification.c
new file mode 100644
index 00000000..d55e5aed
--- /dev/null
+++ b/python/protocols/py_federation_termination_notification.c
@@ -0,0 +1,80 @@
+/* $Id$
+ *
+ * PyLasso -- Python bindings for Lasso library
+ *
+ * Copyright (C) 2004 Entr'ouvert
+ * http://lasso.labs.libre-entreprise.org
+ *
+ * Author: 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 "../xml/py_xml.h"
+#include "py_federation_termination_notification.h"
+
+
+PyObject *lassoFederationTerminationNotification_wrap(LassoFederationTerminationNotification *notification) {
+ PyObject *ret;
+
+ if (notification == NULL) {
+ Py_INCREF(Py_None);
+ return (Py_None);
+ }
+ ret = PyCObject_FromVoidPtrAndDesc((void *) notification,
+ (char *) "LassoFederationTerminationNotification *", NULL);
+ return (ret);
+}
+
+PyObject *federation_termination_notification_getattr(PyObject *self, PyObject *args) {
+ PyObject *notification_obj;
+ LassoFederationTerminationNotification *notification;
+ const char *attr;
+
+ if (CheckArgs(args, "OS:federation_termination_notification_get_attr")) {
+ if (!PyArg_ParseTuple(args, "Os:federation_termination_notification_get_attr", &notification_obj, &attr))
+ return NULL;
+ }
+ else return NULL;
+
+ notification = lassoFederationTerminationNotification_get(notification_obj);
+
+ Py_INCREF(Py_None);
+ return (Py_None);
+}
+
+PyObject *federation_termination_notification(PyObject *self, PyObject *args) {
+ const xmlChar *providerID;
+ const xmlChar *nameIdentifier;
+ const xmlChar *nameQualifier;
+ const xmlChar *format;
+
+ LassoFederationTerminationNotification *notification;
+
+ if(!PyArg_ParseTuple(args, (char *) "ssss:federation_termination_notification",
+ &providerID,
+ &nameIdentifier, &nameQualifier, &format))
+ return NULL;
+
+ notification = (LassoFederationTerminationNotification *)lasso_federation_termination_notification_new(providerID,
+ nameIdentifier,
+ nameQualifier,
+ format);
+
+ return (lassoFederationTerminationNotification_wrap(notification));
+}
diff --git a/python/protocols/py_federation_termination_notification.h b/python/protocols/py_federation_termination_notification.h
new file mode 100644
index 00000000..354a1b6c
--- /dev/null
+++ b/python/protocols/py_federation_termination_notification.h
@@ -0,0 +1,42 @@
+/* $Id$
+ *
+ * PyLasso -- Python bindings for Lasso library
+ *
+ * Copyright (C) 2004 Entr'ouvert
+ * http://lasso.labs.libre-entreprise.org
+ *
+ * Author: 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
+ */
+
+#ifndef __PYLASSO_PY_FEDERATION_TERMINATION_NOTIFICATION_H__
+#define __PYLASSO_PY_FEDERATION_TERMINATION_NOTIFICATION_H__
+
+#include <lasso/protocols/federation_termination_notification.h>
+
+typedef struct {
+ PyObject_HEAD
+ LassoFederationTerminationNotification *obj;
+} LassoFederationTerminationNotification_object;
+
+#define lassoFederationTerminationNotification_get(v) (((v) == Py_None) ? NULL : (((LassoFederationTerminationNotification_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj))
+PyObject *lassoFederationTerminationNotification_wrap(LassoFederationTerminationNotification *notification);
+
+PyObject *federation_termination_notification_getattr(PyObject *self, PyObject *args);
+PyObject *federation_termination_notification(PyObject *self, PyObject *args);
+
+#endif /* __PYLASSO_PY_FEDERATION_TERMINATION_NOTIFICATION_H__ */
diff --git a/python/protocols/py_logout_request.c b/python/protocols/py_logout_request.c
new file mode 100644
index 00000000..d89a3ae0
--- /dev/null
+++ b/python/protocols/py_logout_request.c
@@ -0,0 +1,80 @@
+/* $Id$
+ *
+ * PyLasso -- Python bindings for Lasso library
+ *
+ * Copyright (C) 2004 Entr'ouvert
+ * http://lasso.labs.libre-entreprise.org
+ *
+ * Author: 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 "../xml/py_xml.h"
+#include "py_logout_request.h"
+
+
+PyObject *lassoLogoutRequest_wrap(LassoLogoutRequest *request) {
+ PyObject *ret;
+
+ if (request == NULL) {
+ Py_INCREF(Py_None);
+ return (Py_None);
+ }
+ ret = PyCObject_FromVoidPtrAndDesc((void *) request,
+ (char *) "LassoLogoutRequest *", NULL);
+ return (ret);
+}
+
+PyObject *logout_request_getattr(PyObject *self, PyObject *args) {
+ PyObject *request_obj;
+ LassoLogoutRequest *request;
+ const char *attr;
+
+ if (CheckArgs(args, "OS:logout_request_get_attr")) {
+ if (!PyArg_ParseTuple(args, "Os:logout_request_get_attr", &request_obj, &attr))
+ return NULL;
+ }
+ else return NULL;
+
+ request = lassoLogoutRequest_get(request_obj);
+
+ Py_INCREF(Py_None);
+ return (Py_None);
+}
+
+PyObject *logout_request(PyObject *self, PyObject *args) {
+ const xmlChar *providerID;
+ const xmlChar *nameIdentifier;
+ const xmlChar *nameQualifier;
+ const xmlChar *format;
+
+ LassoLogoutRequest *request;
+
+ if(!PyArg_ParseTuple(args, (char *) "ssss:logout_request",
+ &providerID,
+ &nameIdentifier, &nameQualifier, &format))
+ return NULL;
+
+ request = (LassoLogoutRequest *)lasso_logout_request_new(providerID,
+ nameIdentifier,
+ nameQualifier,
+ format);
+
+ return (lassoLogoutRequest_wrap(request));
+}
diff --git a/python/protocols/py_logout_request.h b/python/protocols/py_logout_request.h
new file mode 100644
index 00000000..d28794d7
--- /dev/null
+++ b/python/protocols/py_logout_request.h
@@ -0,0 +1,42 @@
+/* $Id$
+ *
+ * PyLasso -- Python bindings for Lasso library
+ *
+ * Copyright (C) 2004 Entr'ouvert
+ * http://lasso.labs.libre-entreprise.org
+ *
+ * Author: 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
+ */
+
+#ifndef __PYLASSO_PY_LOGOUT_REQUEST_H__
+#define __PYLASSO_PY_LOGOUT_REQUEST_H__
+
+#include <lasso/protocols/logout_request.h>
+
+typedef struct {
+ PyObject_HEAD
+ LassoLogoutRequest *obj;
+} LassoLogoutRequest_object;
+
+#define lassoLogoutRequest_get(v) (((v) == Py_None) ? NULL : (((LassoLogoutRequest_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj))
+PyObject *lassoLogoutRequest_wrap(LassoLogoutRequest *request);
+
+PyObject *logout_request_getattr(PyObject *self, PyObject *args);
+PyObject *logout_request(PyObject *self, PyObject *args);
+
+#endif /* __PYLASSO_PY_LOGOUT_REQUEST_H__ */
diff --git a/python/protocols/py_logout_response.c b/python/protocols/py_logout_response.c
new file mode 100644
index 00000000..8ee1eb40
--- /dev/null
+++ b/python/protocols/py_logout_response.c
@@ -0,0 +1,80 @@
+/* $Id$
+ *
+ * PyLasso -- Python bindings for Lasso library
+ *
+ * Copyright (C) 2004 Entr'ouvert
+ * http://lasso.labs.libre-entreprise.org
+ *
+ * Author: 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 "../xml/py_xml.h"
+#include "py_logout_request.h"
+#include "py_logout_response.h"
+
+
+PyObject *lassoLogoutResponse_wrap(LassoLogoutResponse *response) {
+ PyObject *ret;
+
+ if (response == NULL) {
+ Py_INCREF(Py_None);
+ return (Py_None);
+ }
+ ret = PyCObject_FromVoidPtrAndDesc((void *) response,
+ (char *) "LassoLogoutResponse *", NULL);
+ return (ret);
+}
+
+
+PyObject *logout_response_getattr(PyObject *self, PyObject *args) {
+ PyObject *response_obj;
+ LassoLogoutResponse *response;
+ const char *attr;
+
+ if (CheckArgs(args, "OS:logout_response_get_attr")) {
+ if (!PyArg_ParseTuple(args, "Os:logout_response_get_attr", &response_obj, &attr))
+ return NULL;
+ }
+ else return NULL;
+
+ response = lassoLogoutResponse_get(response_obj);
+
+ Py_INCREF(Py_None);
+ return (Py_None);
+}
+
+PyObject *logout_response(PyObject *self, PyObject *args) {
+ const xmlChar *providerID;
+ const xmlChar *statusCodeValue;
+ PyObject *request_obj;
+
+ LassoLogoutResponse *response;
+
+ if(!PyArg_ParseTuple(args, (char *) "ssO:logout_response",
+ &providerID,
+ &statusCodeValue, &request_obj))
+ return NULL;
+
+ response = (LassoLogoutResponse *)lasso_logout_response_new(providerID,
+ statusCodeValue,
+ lassoLogoutRequest_get(request_obj));
+
+ return (lassoLogoutResponse_wrap(response));
+}
diff --git a/python/protocols/py_logout_response.h b/python/protocols/py_logout_response.h
new file mode 100644
index 00000000..cace07dc
--- /dev/null
+++ b/python/protocols/py_logout_response.h
@@ -0,0 +1,41 @@
+/* $Id$
+ *
+ * PyLasso -- Python bindings for Lasso library
+ *
+ * Copyright (C) 2004 Entr'ouvert
+ * http://lasso.labs.libre-entreprise.org
+ *
+ * Author: Valery Febvre <vfebvre@easter-eggs.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
+ */
+
+#ifndef __PYLASSO_PY_LOGOUT_RESPONSE_H__
+#define __PYLASSO_PY_LOGOUT_RESPONSE_H__
+
+#include <lasso/protocols/logout_response.h>
+
+typedef struct {
+ PyObject_HEAD
+ LassoLogoutResponse *obj;
+} LassoLogoutResponse_object;
+
+#define lassoLogoutResponse_get(v) (((v) == Py_None) ? NULL : (((LassoLogoutResponse_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj))
+PyObject *lassoLogoutResponse_wrap(LassoLogoutResponse *response);
+
+PyObject *logout_response_getattr(PyObject *self, PyObject *args);
+PyObject *logout_response(PyObject *self, PyObject *args);
+
+#endif /* __PYLASSO_PY_LOGOUT_RESPONSE_H__ */
diff --git a/python/protocols/py_register_name_identifier_request.c b/python/protocols/py_register_name_identifier_request.c
new file mode 100644
index 00000000..6df48e50
--- /dev/null
+++ b/python/protocols/py_register_name_identifier_request.c
@@ -0,0 +1,96 @@
+/* $Id$
+ *
+ * PyLasso -- Python bindings for Lasso library
+ *
+ * Copyright (C) 2004 Entr'ouvert
+ * http://lasso.labs.libre-entreprise.org
+ *
+ * Author: 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 "../xml/py_xml.h"
+#include "py_register_name_identifier_request.h"
+
+PyObject *lassoRegisterNameIdentifierRequest_wrap(LassoRegisterNameIdentifierRequest *request) {
+ PyObject *ret;
+
+ if (request == NULL) {
+ Py_INCREF(Py_None);
+ return (Py_None);
+ }
+ ret = PyCObject_FromVoidPtrAndDesc((void *) request,
+ (char *) "LassoRegisterNameIdentifierRequest *", NULL);
+ return (ret);
+}
+
+PyObject *register_name_identifier_request_getattr(PyObject *self, PyObject *args) {
+ PyObject *request_obj;
+ LassoRegisterNameIdentifierRequest *request;
+ const char *attr;
+
+ if (CheckArgs(args, "OS:register_name_identifier_request_get_attr")) {
+ if (!PyArg_ParseTuple(args, "Os:register_name_identifier_request_get_attr", &request_obj, &attr))
+ return NULL;
+ }
+ else return NULL;
+
+ request = lassoRegisterNameIdentifierRequest_get(request_obj);
+
+ Py_INCREF(Py_None);
+ return (Py_None);
+}
+
+PyObject *register_name_identifier_request(PyObject *self, PyObject *args) {
+ const xmlChar *providerID;
+
+ const xmlChar *idpNameIdentifier;
+ const xmlChar *idpNameQualifier;
+ const xmlChar *idpFormat;
+
+ const xmlChar *spNameIdentifier;
+ const xmlChar *spNameQualifier;
+ const xmlChar *spFormat;
+
+ const xmlChar *oldNameIdentifier;
+ const xmlChar *oldNameQualifier;
+ const xmlChar *oldFormat;
+
+ LassoRegisterNameIdentifierRequest *request;
+
+ if(!PyArg_ParseTuple(args, (char *) "ssssssssss:register_name_identifier_request",
+ &providerID,
+ &idpNameIdentifier, &idpNameQualifier, &idpFormat,
+ &spNameIdentifier, &spNameQualifier, &spFormat,
+ &oldNameIdentifier, &oldNameQualifier, &oldFormat))
+ return NULL;
+
+ request = (LassoRegisterNameIdentifierRequest *)lasso_register_name_identifier_request_new(providerID,
+ idpNameIdentifier,
+ idpNameQualifier,
+ idpFormat,
+ spNameIdentifier,
+ spNameQualifier,
+ spFormat,
+ oldNameIdentifier,
+ oldNameQualifier,
+ oldFormat);
+
+ return (lassoRegisterNameIdentifierRequest_wrap(request));
+}
diff --git a/python/protocols/py_register_name_identifier_request.h b/python/protocols/py_register_name_identifier_request.h
new file mode 100644
index 00000000..cb4cfc3c
--- /dev/null
+++ b/python/protocols/py_register_name_identifier_request.h
@@ -0,0 +1,42 @@
+/* $Id$
+ *
+ * PyLasso -- Python bindings for Lasso library
+ *
+ * Copyright (C) 2004 Entr'ouvert
+ * http://lasso.labs.libre-entreprise.org
+ *
+ * Author: 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
+ */
+
+#ifndef __PYLASSO_PY_REGISTER_NAME_IDENTIFIER_REQUEST_H__
+#define __PYLASSO_PY_REGISTER_NAME_IDENTIFIER_REQUEST_H__
+
+#include <lasso/protocols/register_name_identifier_request.h>
+
+typedef struct {
+ PyObject_HEAD
+ LassoRegisterNameIdentifierRequest *obj;
+} LassoRegisterNameIdentifierRequest_object;
+
+#define lassoRegisterNameIdentifierRequest_get(v) (((v) == Py_None) ? NULL : (((LassoRegisterNameIdentifierRequest_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj))
+PyObject *lassoRegisterNameIdentifierRequest_wrap(LassoRegisterNameIdentifierRequest *request);
+
+PyObject *register_name_identifier_request_getattr(PyObject *self, PyObject *args);
+PyObject *register_name_identifier_request(PyObject *self, PyObject *args);
+
+#endif /* __PYLASSO_PY_REGISTER_NAME_IDENTIFIER_REQUEST_H__ */
diff --git a/python/protocols/py_register_name_identifier_response.c b/python/protocols/py_register_name_identifier_response.c
new file mode 100644
index 00000000..e50e1d06
--- /dev/null
+++ b/python/protocols/py_register_name_identifier_response.c
@@ -0,0 +1,80 @@
+/* $Id$
+ *
+ * PyLasso -- Python bindings for Lasso library
+ *
+ * Copyright (C) 2004 Entr'ouvert
+ * http://lasso.labs.libre-entreprise.org
+ *
+ * Author: 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 "../xml/py_xml.h"
+#include "py_register_name_identifier_request.h"
+#include "py_register_name_identifier_response.h"
+
+
+PyObject *lassoRegisterNameIdentifierResponse_wrap(LassoRegisterNameIdentifierResponse *response) {
+ PyObject *ret;
+
+ if (response == NULL) {
+ Py_INCREF(Py_None);
+ return (Py_None);
+ }
+ ret = PyCObject_FromVoidPtrAndDesc((void *) response,
+ (char *) "LassoRegisterNameIdentifierResponse *", NULL);
+ return (ret);
+}
+
+
+PyObject *register_name_identifier_response_getattr(PyObject *self, PyObject *args) {
+ PyObject *response_obj;
+ LassoRegisterNameIdentifierResponse *response;
+ const char *attr;
+
+ if (CheckArgs(args, "OS:register_name_identifier_response_get_attr")) {
+ if (!PyArg_ParseTuple(args, "Os:register_name_identifier_response_get_attr", &response_obj, &attr))
+ return NULL;
+ }
+ else return NULL;
+
+ response = lassoRegisterNameIdentifierResponse_get(response_obj);
+
+ Py_INCREF(Py_None);
+ return (Py_None);
+}
+
+PyObject *register_name_identifier_response(PyObject *self, PyObject *args) {
+ const xmlChar *providerID;
+ const xmlChar *statusCodeValue;
+ PyObject *request_obj;
+
+ LassoRegisterNameIdentifierResponse *response;
+
+ if(!PyArg_ParseTuple(args, (char *) "ssO:register_name_identifier_response",
+ &providerID,
+ &statusCodeValue, &request_obj))
+ return NULL;
+
+ response = (LassoRegisterNameIdentifierResponse *)lasso_register_name_identifier_response_new(providerID,
+ statusCodeValue,
+ lassoRegisterNameIdentifierRequest_get(request_obj));
+
+ return (lassoRegisterNameIdentifierResponse_wrap(response));
+}
diff --git a/python/protocols/py_register_name_identifier_response.h b/python/protocols/py_register_name_identifier_response.h
new file mode 100644
index 00000000..fd9cefda
--- /dev/null
+++ b/python/protocols/py_register_name_identifier_response.h
@@ -0,0 +1,42 @@
+/* $Id$
+ *
+ * PyLasso -- Python bindings for Lasso library
+ *
+ * Copyright (C) 2004 Entr'ouvert
+ * http://lasso.labs.libre-entreprise.org
+ *
+ * Author: 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
+ */
+
+#ifndef __PYLASSO_PY_REGISTER_NAME_IDENTIFIER_RESPONSE_H__
+#define __PYLASSO_PY_REGISTER_NAME_IDENTIFIER_RESPONSE_H__
+
+#include <lasso/protocols/register_name_identifier_response.h>
+
+typedef struct {
+ PyObject_HEAD
+ LassoRegisterNameIdentifierResponse *obj;
+} LassoRegisterNameIdentifierResponse_object;
+
+#define lassoRegisterNameIdentifierResponse_get(v) (((v) == Py_None) ? NULL : (((LassoRegisterNameIdentifierResponse_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj))
+PyObject *lassoRegisterNameIdentifierResponse_wrap(LassoRegisterNameIdentifierResponse *response);
+
+PyObject *register_name_identifier_response_getattr(PyObject *self, PyObject *args);
+PyObject *register_name_identifier_response(PyObject *self, PyObject *args);
+
+#endif /* __PYLASSO_PY_REGISTER_NAME_IDENTIFIER_RESPONSE_H__ */