]> jfr.im git - irc/quakenet/newserv.git/blob - splitlist/splitlist.h
r729@blue (orig r504): slug | 2006-06-09 14:02:53 +0100
[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 "../lib/array.h"
7
8 typedef struct {
9 sstring *name; /* name of the server */
10 time_t ts; /* timestamp of the split */
11 } splitserver;
12
13 extern array splitlist;
14
15 int sp_countsplitservers(void);
16 int sp_issplitserver(const char *name);
17 void sp_deletesplit(const char *name);
18 void sp_addsplit(const char *name, time_t ts);
19 int sp_countsplitservers(void);
20
21 #endif /* __SPLITLIST_H */