--- deliantra/server/plugins/cfpython/include/cfpython_proto.h 2006/02/03 07:14:19 1.1.1.1 +++ deliantra/server/plugins/cfpython/include/cfpython_proto.h 2006/09/07 20:11:26 1.4 @@ -1,8 +1,22 @@ /* cfpython.c */ -CF_PLUGIN void * getPluginProperty(int *type, ...); -CF_PLUGIN int postInitPlugin(void); -CF_PLUGIN void *globalEventListener(int *type, ...); -CF_PLUGIN void *eventListener(int *type, ...); -CF_PLUGIN int closePlugin(void); -CF_PLUGIN int runPluginCommand(object* op, char* params); +void initContextStack(void); +void pushContext(CFPContext *context); +CFPContext *popContext(void); +void freeContext(CFPContext *context); +extern "C" int initPlugin(const char *iversion, f_plug_api gethooksptr); +extern "C" void *getPluginProperty(int *type, ...); +extern "C" int runPluginCommand(object *op, char *params); +extern "C" int postInitPlugin(void); +extern "C" void *globalEventListener(int *type, ...); +extern "C" void *eventListener(int *type, ...); +extern "C" int closePlugin(void); +/* cfpython_archetype.c */ +PyObject *Crossfire_Archetype_wrap(archetype *what); +/* cfpython_object.c */ PyObject *Crossfire_Object_wrap(object *what); +/* cfpython_party.c */ +PyObject *Crossfire_Party_wrap(partylist *what); +/* cfpython_region.c */ +PyObject *Crossfire_Region_wrap(region *what); +/* cfpython_map.c */ +PyObject *Crossfire_Map_wrap(mapstruct *what);