diff options
| author | Nicolas Clapies <nclapies@entrouvert.com> | 2004-07-16 11:12:28 +0000 |
|---|---|---|
| committer | Nicolas Clapies <nclapies@entrouvert.com> | 2004-07-16 11:12:28 +0000 |
| commit | 8ff0d93d6e96c61fddb30e6b8c42fa056ceec8c0 (patch) | |
| tree | 4821b4f3cc51222b3facebcefe2d978b0e5193ba /python/environs | |
| parent | aa4af2d1096e8f54edfc221863a02c4d6750e464 (diff) | |
| download | lasso-8ff0d93d6e96c61fddb30e6b8c42fa056ceec8c0.tar.gz lasso-8ff0d93d6e96c61fddb30e6b8c42fa056ceec8c0.tar.xz lasso-8ff0d93d6e96c61fddb30e6b8c42fa056ceec8c0.zip | |
*** empty log message ***
Diffstat (limited to 'python/environs')
| -rw-r--r-- | python/environs/py_user.c | 16 | ||||
| -rw-r--r-- | python/environs/py_user.h | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/python/environs/py_user.c b/python/environs/py_user.c index 5d26b829..0e51153b 100644 --- a/python/environs/py_user.c +++ b/python/environs/py_user.c @@ -60,6 +60,22 @@ PyObject *user_new_from_dump(PyObject *self, PyObject *args) { return (LassoUser_wrap(user)); } +PyObject *user_destroy(PyObject *self, PyObject *args) { + PyObject *user_obj; + + if (CheckArgs(args, "O:user_destroy")) { + if(!PyArg_ParseTuple(args, (char *) "O:user_destroy", + &user_obj)) + return NULL; + } + else return NULL; + + lasso_user_destroy(LassoUser_get(user_obj)); + + Py_INCREF(Py_None); + return (Py_None); +} + PyObject *user_dump(PyObject *self, PyObject *args) { PyObject *user_obj; gchar *dump; diff --git a/python/environs/py_user.h b/python/environs/py_user.h index cdde6d04..128c9e21 100644 --- a/python/environs/py_user.h +++ b/python/environs/py_user.h @@ -38,6 +38,7 @@ PyObject *LassoUser_wrap(LassoUser *user); PyObject *user_new(PyObject *self, PyObject *args); PyObject *user_new_from_dump(PyObject *self, PyObject *args); +PyObject *user_destroy(PyObject *self, PyObject *args); PyObject *user_dump(PyObject *self, PyObject *args); PyObject *user_get_assertion(PyObject *self, PyObject *args); PyObject *user_get_next_providerID(PyObject *self, PyObject *args); |
