diff options
| author | Tomas 'ZeXx86' Jedrzejek <zexx86@gmail.com> | 2009-12-10 17:38:09 +0100 |
|---|---|---|
| committer | Tomas 'ZeXx86' Jedrzejek <zexx86@gmail.com> | 2009-12-10 17:38:09 +0100 |
| commit | f1ebdbfdbe4d3ce7fc6eaa6a164134b06cfb9603 (patch) | |
| tree | ab298dc2b7730d6009cec40b69a31044de86c501 /src/base/modules.h | |
| parent | cee6589f0dc39ffdbfe2c8faa1e8a0c40f848257 (diff) | |
Total conversion of the shared modules to static, fix warning in arenaFile.c, improvements in some areas of a
code
Diffstat (limited to 'src/base/modules.h')
| -rw-r--r-- | src/base/modules.h | 27 |
1 files changed, 27 insertions, 0 deletions
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); |