ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/plugins/cfpython/include/cfpython_party_private.h
Revision: 1.1
Committed: Fri Feb 3 07:14:19 2006 UTC (18 years, 5 months ago) by root
Content type: text/plain
Branch: MAIN
Branch point for: UPSTREAM
Log Message:
Initial revision

File Contents

# User Rev Content
1 root 1.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, PyObject* args );
4     static PyObject* Crossfire_Party_GetPlayers( Crossfire_Party* who, PyObject* args );
5    
6     static int Crossfire_Party_InternalCompare(Crossfire_Party* left, Crossfire_Party* right);
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     { NULL, NULL, NULL, NULL, NULL }
12     };
13    
14     static PyMethodDef PartyMethods[] = {
15     { "Next", (PyCFunction)Crossfire_Party_GetNext, METH_VARARGS},
16     { "GetPlayers", (PyCFunction)Crossfire_Party_GetPlayers, METH_VARARGS},
17     {NULL, NULL, 0}
18     };
19    
20     /* Our actual Python ArchetypeType */
21     PyTypeObject Crossfire_PartyType = {
22     PyObject_HEAD_INIT(NULL)
23     0, /* ob_size*/
24     "Crossfire.Party", /* tp_name*/
25     sizeof(Crossfire_Party), /* tp_basicsize*/
26     0, /* tp_itemsize*/
27     0, /* tp_dealloc*/
28     0, /* tp_print*/
29     0, /* tp_getattr*/
30     0, /* tp_setattr*/
31     (cmpfunc)Crossfire_Party_InternalCompare, /* tp_compare*/
32     0, /* tp_repr*/
33     0, /* tp_as_number*/
34     0, /* tp_as_sequence*/
35     0, /* tp_as_mapping*/
36     0, /* tp_hash */
37     0, /* tp_call*/
38     0, /* tp_str*/
39     PyObject_GenericGetAttr, /* tp_getattro*/
40     PyObject_GenericSetAttr, /* tp_setattro*/
41     0, /* tp_as_buffer*/
42     Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags*/
43     "Crossfire parties", /* tp_doc */
44     0, /* tp_traverse */
45     0, /* tp_clear */
46     0, /* tp_richcompare */
47     0, /* tp_weaklistoffset */
48     0, /* tp_iter */
49     0, /* tp_iternext */
50     PartyMethods, /* tp_methods */
51     0, /* tp_members */
52     Party_getseters, /* tp_getset */
53     };