Crossfire Server, Branches 1.12  R18729
cfpython_party_private.h
Go to the documentation of this file.
1 static PyObject *Crossfire_Party_GetName(Crossfire_Party *whoptr, void *closure);
2 static PyObject *Crossfire_Party_GetPassword(Crossfire_Party *whoptr, void *closure);
3 static PyObject *Crossfire_Party_GetNext(Crossfire_Party *who, void *closure);
4 static PyObject *Crossfire_Party_GetPlayers(Crossfire_Party *who, PyObject *args);
5 
7 
8 static PyGetSetDef Party_getseters[] = {
9  { "Name", (getter)Crossfire_Party_GetName, NULL, NULL, NULL },
10  { "Password", (getter)Crossfire_Party_GetPassword, NULL, NULL, NULL },
11  { "Next", (getter)Crossfire_Party_GetNext, NULL, NULL, NULL },
12  { NULL, NULL, NULL, NULL, NULL }
13 };
14 
15 static PyMethodDef PartyMethods[] = {
16  { "GetPlayers", (PyCFunction)Crossfire_Party_GetPlayers, METH_NOARGS, NULL },
17  { NULL, NULL, 0, NULL }
18 };
19 
20 /* Our actual Python ArchetypeType */
21 PyTypeObject Crossfire_PartyType = {
22  PyObject_HEAD_INIT(NULL)
23 #ifndef IS_PY3K
24  0, /* ob_size*/
25 #endif
26  "Crossfire.Party", /* tp_name*/
27  sizeof(Crossfire_Party), /* tp_basicsize*/
28  0, /* tp_itemsize*/
29  NULL, /* tp_dealloc*/
30  NULL, /* tp_print*/
31  NULL, /* tp_getattr*/
32  NULL, /* tp_setattr*/
33  (cmpfunc)Crossfire_Party_InternalCompare, /* tp_compare*/
34  NULL, /* tp_repr*/
35  NULL, /* tp_as_number*/
36  NULL, /* tp_as_sequence*/
37  NULL, /* tp_as_mapping*/
38  PyObject_HashNotImplemented, /* tp_hash */
39  NULL, /* tp_call*/
40  NULL, /* tp_str*/
41  PyObject_GenericGetAttr, /* tp_getattro*/
42  PyObject_GenericSetAttr, /* tp_setattro*/
43  NULL, /* tp_as_buffer*/
44  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags*/
45  "Crossfire parties", /* tp_doc */
46  NULL, /* tp_traverse */
47  NULL, /* tp_clear */
48  NULL, /* tp_richcompare */
49  0, /* tp_weaklistoffset */
50  NULL, /* tp_iter */
51  NULL, /* tp_iternext */
52  PartyMethods, /* tp_methods */
53  NULL, /* tp_members */
54  Party_getseters, /* tp_getset */
55  NULL, /* tp_base */
56  NULL, /* tp_dict */
57  NULL, /* tp_descr_get */
58  NULL, /* tp_descr_set */
59  0, /* tp_dictoffset */
60  NULL, /* tp_init */
61  NULL, /* tp_alloc */
62  NULL, /* tp_new */
63  NULL, /* tp_free */
64  NULL, /* tp_is_gc */
65  NULL, /* tp_bases */
66  NULL, /* tp_mro */
67  NULL, /* tp_cache */
68  NULL, /* tp_subclasses */
69  NULL, /* tp_weaklist */
70  NULL, /* tp_del */
71 };
static PyObject * Crossfire_Party_GetPassword(Crossfire_Party *whoptr, void *closure)
static int Crossfire_Party_InternalCompare(Crossfire_Party *left, Crossfire_Party *right)
static PyMethodDef PartyMethods[]
#define PyObject_HashNotImplemented
Definition: cfpython.h:73
static PyObject * Crossfire_Party_GetNext(Crossfire_Party *who, void *closure)
static PyGetSetDef Party_getseters[]
PyTypeObject Crossfire_PartyType
static PyObject * Crossfire_Party_GetPlayers(Crossfire_Party *who, PyObject *args)
static PyObject * Crossfire_Party_GetName(Crossfire_Party *whoptr, void *closure)