]>
Commit | Line | Data |
---|---|---|
c96aa815 P |
1 | #ifndef __SPLITLIST_H |
2 | #define __SPLITLIST_H | |
3 | ||
4 | #include <time.h> | |
5 | #include "../server/server.h" | |
81f6c579 | 6 | #include "../serverlist/serverlist.h" |
c96aa815 | 7 | #include "../lib/array.h" |
81f6c579 | 8 | #include "../lib/flags.h" |
c96aa815 P |
9 | |
10 | typedef struct { | |
11 | sstring *name; /* name of the server */ | |
12 | time_t ts; /* timestamp of the split */ | |
81f6c579 | 13 | flag_t type; |
c96aa815 P |
14 | } splitserver; |
15 | ||
16 | extern array splitlist; | |
17 | ||
c96aa815 | 18 | void sp_deletesplit(const char *name); |
81f6c579 CP |
19 | int sp_countsplitservers(flag_t orflags); |
20 | /* I don't see why these are exported... */ | |
21 | /* | |
22 | int sp_issplitserver(const char *name); | |
c96aa815 | 23 | void sp_addsplit(const char *name, time_t ts); |
81f6c579 | 24 | */ |
c96aa815 P |
25 | |
26 | #endif /* __SPLITLIST_H */ |