]> jfr.im git - irc/quakenet/newserv.git/blobdiff - splitlist/splitlist.h
splitlist: Add splitadd command.
[irc/quakenet/newserv.git] / splitlist / splitlist.h
index a8a0726daf4b3b0dbdf154c4991ca1cd3f008107..21e079923249ec9396f23a3c0288539b89c793d1 100644 (file)
@@ -3,19 +3,24 @@
 
 #include <time.h>
 #include "../server/server.h"
+#include "../serverlist/serverlist.h"
 #include "../lib/array.h"
+#include "../lib/flags.h"
 
 typedef struct {
   sstring        *name;      /* name of the server */
   time_t         ts;         /* timestamp of the split */
+  flag_t         type;
 } splitserver;
 
 extern array splitlist;
 
-int sp_countsplitservers(void);
-int sp_issplitserver(const char *name);
 void sp_deletesplit(const char *name);
-void sp_addsplit(const char *name, time_t ts);
-int sp_countsplitservers(void);
+int sp_countsplitservers(flag_t orflags);
+/* I don't see why this is exported... */
+/*
+int sp_issplitserver(const char *name);
+*/
+void sp_addsplit(const char *name, time_t ts, flag_t type);
 
 #endif /* __SPLITLIST_H */