diff options
Diffstat (limited to 'src/server/event.h')
-rw-r--r-- | src/server/event.h | 29 |
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 |