]>
Commit | Line | Data |
---|---|---|
2c5db955 CP |
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; | |
87698d77 | 14 | const char *version; |
2c5db955 CP |
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); | |
1fab6211 | 22 | char *lsmod(int index); |
87698d77 CP |
23 | const char *lsmodver(int index); |
24 | ||
2c5db955 | 25 | #endif |