]> jfr.im git - irc/quakenet/newserv.git/blob - splitlist/splitlist.h
splitlist: Add splitadd command.
[irc/quakenet/newserv.git] / splitlist / splitlist.h
1 #ifndef __SPLITLIST_H
2 #define __SPLITLIST_H
3
4 #include <time.h>
5 #include "../server/server.h"
6 #include "../serverlist/serverlist.h"
7 #include "../lib/array.h"
8 #include "../lib/flags.h"
9
10 typedef struct {
11 sstring *name; /* name of the server */
12 time_t ts; /* timestamp of the split */
13 flag_t type;
14 } splitserver;
15
16 extern array splitlist;
17
18 void sp_deletesplit(const char *name);
19 int sp_countsplitservers(flag_t orflags);
20 /* I don't see why this is exported... */
21 /*
22 int sp_issplitserver(const char *name);
23 */
24 void sp_addsplit(const char *name, time_t ts, flag_t type);
25
26 #endif /* __SPLITLIST_H */