summaryrefslogtreecommitdiff
path: root/src/server/event.h
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-07-14 01:09:14 +0000
committerLaurent Bercot <ska@appnovation.com>2021-07-14 01:09:14 +0000
commit89a440efc603e6d6c7fa85b01a5a904baff5cd26 (patch)
tree0ae19265897cb400f0941e64000839250e53c571 /src/server/event.h
parent0fda45c68b6a257ee26e9f9813cce8962f94e2fd (diff)
downloads6-rc-89a440efc603e6d6c7fa85b01a5a904baff5cd26.tar.xz
More db/event/state changes
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/server/event.h')
-rw-r--r--src/server/event.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/server/event.h b/src/server/event.h
new file mode 100644
index 0000000..b2faac4
--- /dev/null
+++ b/src/server/event.h
@@ -0,0 +1,29 @@
+/* ISC license. */
+
+#ifndef S6RCD_EV_H
+#define S6RCD_EV_H
+
+#include "db.h"
+
+typedef event_s event_t, *event_t_ref ;
+struct event_s
+{
+ s6rc_id_t id ;
+ char const *param ;
+ uint8_t wanted : 1 ;
+ uint8_t up : 1 ;
+ uint8_t extra : 6 ;
+} ;
+
+
+ /* Event queue */
+
+extern int event_enqueue (event_t const *) ;
+extern int event_pop (event_t *) ;
+
+
+ /* Event processor: the builtin part */
+
+extern void event_handle (event_t const *) ;
+
+#endif