]> jfr.im git - irc/quakenet/newserv.git/blame - core/modules.h
Add eXtended service broadcast module (allows sending of authflags without ircd support).
[irc/quakenet/newserv.git] / core / modules.h
CommitLineData
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
11typedef struct {
12 sstring *name;
13 void *handle;
87698d77 14 const char *version;
2c5db955
CP
15} module;
16
17void initmodules();
18int insmod(char *modulename);
19int getindex(char *modulename);
20int isloaded(char *modulename);
21int rmmod(char *modulename);
1fab6211 22char *lsmod(int index);
87698d77 23const char *lsmodver(int index);
3fa581ac 24void preparereload(char *modulename);
25void reloadmarked(void);
65f2c6a3 26void safereload(char *themodule);
83951d54 27void newserv_shutdown();
4e4920a4 28void *ndlsym(char *module, char *fn);
83951d54 29
30extern int newserv_shutdown_pending;
87698d77 31
2c5db955 32#endif