summaryrefslogtreecommitdiffstats
path: root/python/environs
diff options
context:
space:
mode:
Diffstat (limited to 'python/environs')
-rw-r--r--python/environs/py_logout.c19
-rw-r--r--python/environs/py_logout.h1
2 files changed, 20 insertions, 0 deletions
diff --git a/python/environs/py_logout.c b/python/environs/py_logout.c
index 7e444a07..35fa483e 100644
--- a/python/environs/py_logout.c
+++ b/python/environs/py_logout.c
@@ -138,6 +138,25 @@ PyObject *logout_destroy(PyObject *self, PyObject *args){
return(Py_None);
}
+PyObject *logout_get_next_providerID(PyObject *self, PyObject *args) {
+ PyObject *logout_obj;
+ gchar *remote_providerID;
+
+ if (CheckArgs(args, "O:logout_get_next_providerID")) {
+ if(!PyArg_ParseTuple(args, (char *) "O:logout_get_next_providerID", &logout_obj))
+ return NULL;
+ }
+ else return NULL;
+
+ remote_providerID = lasso_logout_get_next_providerID(LassoLogout_get(logout_obj));
+ if(remote_providerID==NULL){
+ Py_INCREF(Py_None);
+ return (Py_None);
+ }
+
+ return (charPtr_wrap(remote_providerID));
+}
+
PyObject *logout_init_request(PyObject *self, PyObject *args) {
PyObject *logout_obj;
gchar *remote_providerID;
diff --git a/python/environs/py_logout.h b/python/environs/py_logout.h
index 479f0764..773ec548 100644
--- a/python/environs/py_logout.h
+++ b/python/environs/py_logout.h
@@ -44,6 +44,7 @@ PyObject *logout_getattr(PyObject *self, PyObject *args);
PyObject *logout_build_request_msg(PyObject *self, PyObject *args);
PyObject *logout_build_response_msg(PyObject *self, PyObject *args);
PyObject *logout_destroy(PyObject *self, PyObject *args);
+PyObject *logout_get_next_providerID(PyObject *self, PyObject *args);
PyObject *logout_init_request(PyObject *self, PyObject *args);
PyObject *logout_new(PyObject *self, PyObject *args);
PyObject *logout_process_request_msg(PyObject *self, PyObject *args);