From f1ebdbfdbe4d3ce7fc6eaa6a164134b06cfb9603 Mon Sep 17 00:00:00 2001 From: Tomas 'ZeXx86' Jedrzejek Date: Thu, 10 Dec 2009 17:38:09 +0100 Subject: Total conversion of the shared modules to static, fix warning in arenaFile.c, improvements in some areas of a code --- src/base/modules.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'src/base/modules.h') diff --git a/src/base/modules.h b/src/base/modules.h index f6cca42..1bda810 100644 --- a/src/base/modules.h +++ b/src/base/modules.h @@ -78,6 +78,33 @@ typedef struct module_s { } module_t; +/* module's call list */ +typedef struct { + void *init; + void *draw; + void *event; + void *isConflict; + void *cmdArena; + void *recvMsg; + void *destroy; +} mod_sym_t; + +/* structure of the registered modules */ +typedef struct mod_context { + struct mod_context *next, *prev; + + char *name; + mod_sym_t *sym; +} mod_reg_t; + +/* available modules */ +extern mod_sym_t modai_sym; +extern mod_sym_t modwall_sym; +extern mod_sym_t modpipe_sym; +extern mod_sym_t modmove_sym; +extern mod_sym_t modbasic_sym; +extern mod_sym_t modteleport_sym; + extern void module_init(); extern int module_load(char *name); extern int module_load_dep(char *name); -- cgit v1.2.3