]> jfr.im git - irc/quakenet/newserv.git/blame - splitlist/splitlist.h
LUA: port luadb to dbapi2 to drop postgres dependency
[irc/quakenet/newserv.git] / splitlist / splitlist.h
CommitLineData
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
10typedef 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
16extern array splitlist;
17
c96aa815 18void sp_deletesplit(const char *name);
81f6c579 19int sp_countsplitservers(flag_t orflags);
719d21bb 20/* I don't see why this is exported... */
81f6c579
CP
21/*
22int sp_issplitserver(const char *name);
81f6c579 23*/
719d21bb 24void sp_addsplit(const char *name, time_t ts, flag_t type);
c96aa815
P
25
26#endif /* __SPLITLIST_H */