summaryrefslogtreecommitdiff
path: root/ecp/server/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'ecp/server/timer.h')
-rw-r--r--ecp/server/timer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ecp/server/timer.h b/ecp/server/timer.h
new file mode 100644
index 0000000..526f0b8
--- /dev/null
+++ b/ecp/server/timer.h
@@ -0,0 +1,9 @@
+#include <signal.h>
+
+#define ANN_BLOCK_TIME 7200 /* time to block announce before online switch (s) */
+#define ONLINE_SWITCH_PERIOD 86400 /* online switch period (s) */
+
+int timer_set_next(time_t tv_now);
+void timer_ann_block(union sigval timer_data);
+void timer_online_switch(union sigval timer_data);
+int timer_init(ECPSocket *sock);