]>
Commit | Line | Data |
---|---|---|
2c5db955 CP |
1 | /* modules.h */ |
2 | ||
3 | #ifndef __MODULES_H | |
4 | #define __MODULES_H | |
5 | ||
6 | #include "../lib/sstring.h" | |
7 | ||
2fb74c5e CP |
8 | #include <time.h> |
9 | ||
2c5db955 CP |
10 | #define MODULENAMELEN 40 |
11 | #define MODULEDESCLEN 200 | |
12 | ||
13 | typedef struct { | |
14 | sstring *name; | |
15 | void *handle; | |
87698d77 | 16 | const char *version; |
2fb74c5e CP |
17 | const char *buildid; |
18 | time_t loadedsince; | |
2c5db955 CP |
19 | } module; |
20 | ||
21 | void initmodules(); | |
22 | int insmod(char *modulename); | |
23 | int getindex(char *modulename); | |
24 | int isloaded(char *modulename); | |
25 | int rmmod(char *modulename); | |
2fb74c5e | 26 | char *lsmod(int index, const char **ver, const char **buildid, time_t *loadedsince); |
3fa581ac | 27 | void preparereload(char *modulename); |
28 | void reloadmarked(void); | |
65f2c6a3 | 29 | void safereload(char *themodule); |
83951d54 | 30 | void newserv_shutdown(); |
4e4920a4 | 31 | void *ndlsym(char *module, char *fn); |
83951d54 | 32 | |
33 | extern int newserv_shutdown_pending; | |
87698d77 | 34 | |
2c5db955 | 35 | #endif |