summaryrefslogtreecommitdiff
path: root/src/server/event.h
blob: 0f10020420cfde738b746805bea7ebd1061a217a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
{
  uint32_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