X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/2c5db955b146745656e698355c977546a5d7d4d8..056e1ea46d3a0707ca0bb46af4abd429e55c4196:/core/modules.h diff --git a/core/modules.h b/core/modules.h index 6eba2310..b831084b 100644 --- a/core/modules.h +++ b/core/modules.h @@ -5,17 +5,31 @@ #include "../lib/sstring.h" +#include + #define MODULENAMELEN 40 #define MODULEDESCLEN 200 typedef struct { sstring *name; void *handle; + const char *version; + const char *buildid; + time_t loadedsince; } module; void initmodules(); int insmod(char *modulename); int getindex(char *modulename); int isloaded(char *modulename); -int rmmod(char *modulename); +int rmmod(char *modulename, int close); +char *lsmod(int index, const char **ver, const char **buildid, time_t *loadedsince); +void preparereload(char *modulename); +void reloadmarked(void); +void safereload(char *themodule); +void newserv_shutdown(); +void *ndlsym(char *module, char *fn); + +extern int newserv_shutdown_pending; + #endif