X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2Fmodules.h;h=e729c2e509c9f332cab57d028647588eae121f31;hp=8e326ea6fd46f885183078fdf7d8c8269afa1b8f;hb=92aff95471b2d258d9fc4852d0b14ab9855cd447;hpb=8e957f0bcb71b29e0adda8e40eef30cf5fd94f33 diff --git a/src/modules.h b/src/modules.h index 8e326ea..e729c2e 100644 --- a/src/modules.h +++ b/src/modules.h @@ -17,6 +17,24 @@ #ifndef _modules_h #define _modules_h +#define MODINFO_STATE_STARTED 0x01 + +struct ModuleInfo { + char *name; + int module_id; + #ifndef WIN32 + void *module; + #else + HMODULE module; + #endif + int state; + void *startfunc; + void *loopfunc; + void *stopfunc; + struct ModuleInfo *next; +}; + +#ifndef DND_FUNCTIONS void loadModules(); int loadModule(char *name); void start_modules(); @@ -24,4 +42,9 @@ void loop_modules(); void stop_modules(); int module_loaded(int module_id); -#endif \ No newline at end of file +int ext_load_module(char *name); +int ext_unload_module(char *name); +int ext_reload_module(char *name); +struct ModuleInfo *ext_get_modules(struct ModuleInfo *last); +#endif +#endif