#include <Python.h>Idź do kodu źródłowego tego pliku.
Struktury danych | |
| struct | ekg_userObj |
Funkcje | |
| PyObject * | python_build_user (char *session, const char *name) |
| PyObject * | ekg_user_repr (ekg_userObj *self) |
| PyObject * | ekg_user_str (ekg_userObj *self) |
| void | ekg_user_dealloc (ekg_userObj *o) |
| int | ekg_user_init (ekg_userObj *self, PyObject *args, PyObject *kwds) |
| PyObject * | ekg_user_groups (ekg_userObj *self) |
| PyObject * | ekg_user_get_attr (ekg_userObj *self, char *attr) |
Zmienne | |
| staticforward PyMethodDef | ekg_user_methods [] |
| static PyTypeObject | ekg_user_type |
| void ekg_user_dealloc | ( | ekg_userObj * | o | ) |
deallocation of user object
| PyObject* ekg_user_get_attr | ( | ekg_userObj * | self, | |
| char * | attr | |||
| ) |
get attribute from user object
| PyObject* ekg_user_groups | ( | ekg_userObj * | self | ) |
return true if user is connected
| int ekg_user_init | ( | ekg_userObj * | self, | |
| PyObject * | args, | |||
| PyObject * | kwds | |||
| ) |
initialization of user object
| PyObject* ekg_user_repr | ( | ekg_userObj * | self | ) |
__repr__ method
| PyObject* ekg_user_str | ( | ekg_userObj * | self | ) |
__str__ method
| PyObject* python_build_user | ( | char * | session, | |
| const char * | name | |||
| ) |
initialization of user object
| staticforward PyMethodDef ekg_user_methods[] |
{
{"groups", (PyCFunction)ekg_user_groups, METH_NOARGS, "Returns groups user belongs to"},
{NULL, NULL, 0, NULL}
}
PyTypeObject ekg_user_type [static] |
1.7.1