]>
Commit | Line | Data |
---|---|---|
c86edd1d Q |
1 | /* server.h */ |
2 | ||
3 | #ifndef __SERVER_H | |
4 | #define __SERVER_H | |
5 | ||
6 | #include "../lib/sstring.h" | |
7 | #include "../irc/irc_config.h" | |
8 | ||
9 | #define LS_INVALID 0 /* No server here */ | |
10 | #define LS_LINKED 1 /* Server fully linked */ | |
11 | #define LS_LINKING 2 /* This actual server is bursting */ | |
12 | #define LS_PLINKING 3 /* Some other server between here and there is bursting */ | |
13 | #define LS_SQUIT 4 /* This server is being deleted due to a SQUIT */ | |
14 | ||
15 | typedef struct { | |
16 | sstring *name; | |
17 | sstring *description; | |
18 | short parent; | |
19 | short linkstate; | |
20 | int maxusernum; | |
21 | } server; | |
22 | ||
23 | extern server serverlist[MAXSERVERS]; | |
24 | ||
25 | int handleservermsg(void *source, int cargc, char **cargv); | |
26 | int handleeobmsg(void *source, int cargc, char **argv); | |
27 | int handlesquitmsg(void *source, int cargc, char **cargv); | |
28 | void handledisconnect(int hooknum, void *arg); | |
29 | void deleteserver(int servernum); | |
30 | int findserver(const char *name); | |
31 | ||
32 | #endif |