]> jfr.im git - irc/quakenet/newserv.git/blob - core/modules.h
merge
[irc/quakenet/newserv.git] / core / modules.h
1 /* modules.h */
2
3 #ifndef __MODULES_H
4 #define __MODULES_H
5
6 #include "../lib/sstring.h"
7
8 #define MODULENAMELEN 40
9 #define MODULEDESCLEN 200
10
11 typedef struct {
12 sstring *name;
13 void *handle;
14 const char *version;
15 } module;
16
17 void initmodules();
18 int insmod(char *modulename);
19 int getindex(char *modulename);
20 int isloaded(char *modulename);
21 int rmmod(char *modulename);
22 char *lsmod(int index);
23 const char *lsmodver(int index);
24 void preparereload(char *modulename);
25 void reloadmarked(void);
26 void safereload(char *themodule);
27 void newserv_shutdown();
28 void *ndlsym(char *module, char *fn);
29
30 extern int newserv_shutdown_pending;
31
32 #endif