diff options
author | Nicolas Clapies <nclapies@entrouvert.com> | 2004-07-20 16:05:05 +0000 |
---|---|---|
committer | Nicolas Clapies <nclapies@entrouvert.com> | 2004-07-20 16:05:05 +0000 |
commit | 2b83bc221ab4df6a13651392414f3c995e150d10 (patch) | |
tree | 5fca60a0ba26bfbe8436cae463dcac2e36b8c449 /python/protocols/py_logout_request.c | |
parent | a7c3554f40b6b017a4d4abc396de64ed89342a62 (diff) | |
download | lasso-2b83bc221ab4df6a13651392414f3c995e150d10.tar.gz lasso-2b83bc221ab4df6a13651392414f3c995e150d10.tar.xz lasso-2b83bc221ab4df6a13651392414f3c995e150d10.zip |
update internal code to use new_from_export style
Diffstat (limited to 'python/protocols/py_logout_request.c')
-rw-r--r-- | python/protocols/py_logout_request.c | 41 |
1 files changed, 12 insertions, 29 deletions
diff --git a/python/protocols/py_logout_request.c b/python/protocols/py_logout_request.c index fde13d34..ee4a75bf 100644 --- a/python/protocols/py_logout_request.c +++ b/python/protocols/py_logout_request.c @@ -42,10 +42,10 @@ PyObject *LassoLogoutRequest_wrap(LassoLogoutRequest *request) { /******************************************************************************/ PyObject *logout_request_new(PyObject *self, PyObject *args) { - const xmlChar *providerID; - const xmlChar *nameIdentifier; - const xmlChar *nameQualifier; - const xmlChar *format; + gchar *providerID; + gchar *nameIdentifier; + gchar *nameQualifier; + gchar *format; LassoNode *request; @@ -62,36 +62,19 @@ PyObject *logout_request_new(PyObject *self, PyObject *args) { return (LassoLogoutRequest_wrap(LASSO_LOGOUT_REQUEST(request))); } -PyObject *logout_request_new_from_soap(PyObject *self, PyObject *args) { - const xmlChar *soap_buffer; +PyObject *logout_request_new_from_export(PyObject *self, PyObject *args) { + gchar *buffer; + lassoNodeExportTypes export_type; + LassoNode *request; - LassoNode *request; - - if (CheckArgs(args, "S:logout_request_new_from_soap")) { - if(!PyArg_ParseTuple(args, (char *) "s:logout_request_new_from_soap", - &soap_buffer)) - return NULL; - } - else return NULL; - - request = lasso_logout_request_new_from_soap(soap_buffer); - - return (LassoLogoutRequest_wrap(LASSO_LOGOUT_REQUEST(request))); -} - -PyObject *logout_request_new_from_query(PyObject *self, PyObject *args) { - const xmlChar *query; - - LassoNode *request; - - if (CheckArgs(args, "S:logout_request_new_from_query")) { - if(!PyArg_ParseTuple(args, (char *) "s:logout_request_new_from_query", - &query)) + if (CheckArgs(args, "SS:logout_request_new_from_export")) { + if(!PyArg_ParseTuple(args, (char *) "ss:logout_request_new_from_export", + &buffer, &export_type)) return NULL; } else return NULL; - request = lasso_logout_request_new_from_query(query); + request = lasso_logout_request_new_from_export(buffer, export_type); return (LassoLogoutRequest_wrap(LASSO_LOGOUT_REQUEST(request))); } |