]> jfr.im git - irc/quakenet/newserv.git/blobdiff - core/modules.h
add is_normalized_ipmask
[irc/quakenet/newserv.git] / core / modules.h
index 6eba23108f3a23fc654cf2101a4006ce039c020d..207ec983df2198ef97916499cf39da61dcee0c9a 100644 (file)
@@ -5,12 +5,17 @@
 
 #include "../lib/sstring.h"
 
+#include <time.h>
+
 #define MODULENAMELEN 40
 #define MODULEDESCLEN 200
 
 typedef struct {
   sstring *name;
   void    *handle;
+  const char *version;
+  const char *buildid;
+  time_t loadedsince;
 } module;
 
 void initmodules();
@@ -18,4 +23,13 @@ int insmod(char *modulename);
 int getindex(char *modulename);
 int isloaded(char *modulename);
 int rmmod(char *modulename);
+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