00001 static PyObject *Crossfire_Party_GetName(Crossfire_Party *whoptr, void *closure);
00002 static PyObject *Crossfire_Party_GetPassword(Crossfire_Party *whoptr, void *closure);
00003 static PyObject *Crossfire_Party_GetNext(Crossfire_Party *who, void *closure);
00004 static PyObject *Crossfire_Party_GetPlayers(Crossfire_Party *who, PyObject *args);
00005
00006 static int Crossfire_Party_InternalCompare(Crossfire_Party *left, Crossfire_Party *right);
00007
00008 static PyGetSetDef Party_getseters[] = {
00009 { "Name", (getter)Crossfire_Party_GetName, NULL, NULL, NULL },
00010 { "Password", (getter)Crossfire_Party_GetPassword, NULL, NULL, NULL },
00011 { "Next", (getter)Crossfire_Party_GetNext, NULL, NULL, NULL },
00012 { NULL, NULL, NULL, NULL, NULL }
00013 };
00014
00015 static PyMethodDef PartyMethods[] = {
00016 { "GetPlayers", (PyCFunction)Crossfire_Party_GetPlayers, METH_NOARGS, NULL },
00017 { NULL, NULL, 0, NULL }
00018 };
00019
00020
00021 PyTypeObject Crossfire_PartyType = {
00022 PyObject_HEAD_INIT(NULL)
00023 #ifndef IS_PY3K
00024 0,
00025 #endif
00026 "Crossfire.Party",
00027 sizeof(Crossfire_Party),
00028 0,
00029 NULL,
00030 NULL,
00031 NULL,
00032 NULL,
00033 (cmpfunc)Crossfire_Party_InternalCompare,
00034 NULL,
00035 NULL,
00036 NULL,
00037 NULL,
00038 PyObject_HashNotImplemented,
00039 NULL,
00040 NULL,
00041 PyObject_GenericGetAttr,
00042 PyObject_GenericSetAttr,
00043 NULL,
00044 Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE,
00045 "Crossfire parties",
00046 NULL,
00047 NULL,
00048 NULL,
00049 0,
00050 NULL,
00051 NULL,
00052 PartyMethods,
00053 NULL,
00054 Party_getseters,
00055 NULL,
00056 NULL,
00057 NULL,
00058 NULL,
00059 0,
00060 NULL,
00061 NULL,
00062 NULL,
00063 NULL,
00064 NULL,
00065 NULL,
00066 NULL,
00067 NULL,
00068 NULL,
00069 NULL,
00070 NULL,
00071 };