]> jfr.im git - irc/quakenet/newserv.git/blobdiff - core/modules.h
CHANSERV: tell user when they can't attempts to auth any more, and drop max attempts...
[irc/quakenet/newserv.git] / core / modules.h
index db0718b787c31b0b0d7cfdb5067f85d85113983f..b831084bd3366dff3b300c5d9fcfb74a06ea1926 100644 (file)
@@ -5,6 +5,8 @@
 
 #include "../lib/sstring.h"
 
+#include <time.h>
+
 #define MODULENAMELEN 40
 #define MODULEDESCLEN 200
 
@@ -12,17 +14,22 @@ 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);
-char *lsmod(int index);
-const char *lsmodver(int index);
+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