diff options
| author | Nicolas Clapies <nclapies@entrouvert.com> | 2004-04-27 15:34:34 +0000 |
|---|---|---|
| committer | Nicolas Clapies <nclapies@entrouvert.com> | 2004-04-27 15:34:34 +0000 |
| commit | 22e74ede81046574292d305a1bc1f123491c36d0 (patch) | |
| tree | 2bf75e33d7288790d8aaf134234cd953d16d9481 /python/protocols | |
| parent | e4746e265e380cedc609fb53195c704dcd675920 (diff) | |
| download | lasso-22e74ede81046574292d305a1bc1f123491c36d0.tar.gz lasso-22e74ede81046574292d305a1bc1f123491c36d0.tar.xz lasso-22e74ede81046574292d305a1bc1f123491c36d0.zip | |
add optional attribute in FederationTerminationNotification
Diffstat (limited to 'python/protocols')
| -rw-r--r-- | python/protocols/py_federation_termination_notification.c | 14 | ||||
| -rw-r--r-- | python/protocols/py_federation_termination_notification.h | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/python/protocols/py_federation_termination_notification.c b/python/protocols/py_federation_termination_notification.c index d55e5aed..059b8524 100644 --- a/python/protocols/py_federation_termination_notification.c +++ b/python/protocols/py_federation_termination_notification.c @@ -78,3 +78,17 @@ PyObject *federation_termination_notification(PyObject *self, PyObject *args) { return (lassoFederationTerminationNotification_wrap(notification)); } + +PyObject *federation_termination_notification_set_consent(PyObject *self, PyObject *args){ + PyObject *request_obj; + const xmlChar *consent; + + if(!PyArg_ParseTuple(args, (char *) "Os:federation_termination_notification_set_consent", + &request_obj, &consent)) + return NULL; + + lasso_lib_federation_termination_notification_set_consent(lassoFederationTerminationNotification_get(request_obj), + consent); + + return (int_wrap(1)); +} diff --git a/python/protocols/py_federation_termination_notification.h b/python/protocols/py_federation_termination_notification.h index 354a1b6c..a3a17146 100644 --- a/python/protocols/py_federation_termination_notification.h +++ b/python/protocols/py_federation_termination_notification.h @@ -38,5 +38,6 @@ PyObject *lassoFederationTerminationNotification_wrap(LassoFederationTermination PyObject *federation_termination_notification_getattr(PyObject *self, PyObject *args); PyObject *federation_termination_notification(PyObject *self, PyObject *args); +PyObject *federation_termination_notification_set_consent(PyObject *self, PyObject *args); #endif /* __PYLASSO_PY_FEDERATION_TERMINATION_NOTIFICATION_H__ */ |
