]> jfr.im git - irc/quakenet/newserv.git/blame_incremental - core/modules.h
CHANSERV: tell user when they can't attempts to auth any more, and drop max attempts...
[irc/quakenet/newserv.git] / core / modules.h
... / ...
CommitLineData
1/* modules.h */
2
3#ifndef __MODULES_H
4#define __MODULES_H
5
6#include "../lib/sstring.h"
7
8#include <time.h>
9
10#define MODULENAMELEN 40
11#define MODULEDESCLEN 200
12
13typedef struct {
14 sstring *name;
15 void *handle;
16 const char *version;
17 const char *buildid;
18 time_t loadedsince;
19} module;
20
21void initmodules();
22int insmod(char *modulename);
23int getindex(char *modulename);
24int isloaded(char *modulename);
25int rmmod(char *modulename, int close);
26char *lsmod(int index, const char **ver, const char **buildid, time_t *loadedsince);
27void preparereload(char *modulename);
28void reloadmarked(void);
29void safereload(char *themodule);
30void newserv_shutdown();
31void *ndlsym(char *module, char *fn);
32
33extern int newserv_shutdown_pending;
34
35#endif