diff options
| author | Nicolas Clapies <nclapies@entrouvert.com> | 2004-07-09 15:38:31 +0000 |
|---|---|---|
| committer | Nicolas Clapies <nclapies@entrouvert.com> | 2004-07-09 15:38:31 +0000 |
| commit | 02280779752e70cb21e59f0b1606b0653c2b036b (patch) | |
| tree | 682e3e7f05c0e0bc892a396cf891760d4048d6ef /python/environs/py_logout.h | |
| parent | c4aecc092871e9be240419f9ce93b9543786da44 (diff) | |
| download | lasso-02280779752e70cb21e59f0b1606b0653c2b036b.tar.gz lasso-02280779752e70cb21e59f0b1606b0653c2b036b.tar.xz lasso-02280779752e70cb21e59f0b1606b0653c2b036b.zip | |
initial version : binding for logout
Diffstat (limited to 'python/environs/py_logout.h')
| -rw-r--r-- | python/environs/py_logout.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/python/environs/py_logout.h b/python/environs/py_logout.h new file mode 100644 index 00000000..9bd8e5b6 --- /dev/null +++ b/python/environs/py_logout.h @@ -0,0 +1,46 @@ +/* $Id$ + * + * PyLasso -- Python bindings for Lasso library + * + * Copyright (C) 2004 Entr'ouvert + * http://lasso.labs.libre-entreprise.org + * + * Authors: 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_H__ +#define __PYLASSO_PY_LOGOUT_H__ + +#include <lasso/environs/logout.h> + +typedef struct { + PyObject_HEAD + LassoLogout *obj; +} LassoLogout_object; + +#define LassoLogout_get(v) (((v) == Py_None) ? NULL : (((LassoLogout_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj)) +PyObject *LassoLogout_wrap(LassoLogout *logout); + +PyObject *logout_new(PyObject *self, PyObject *args); +PyObject *logout_build_request_msg(PyObject *self, PyObject *args); +PyObject *logout_build_response_msg(PyObject *self, PyObject *args); +PyObject *logout_init_request(PyObject *self, PyObject *args); +PyObject *logout_handle_request(PyObject *self, PyObject *args) +PyObject *logout_handle_response(PyObject *self, PyObject *args); + +#endif /* __PYLASSO_PY_LOGOUT_H__ */ |
