summaryrefslogtreecommitdiff
path: root/src/server/ep.h
blob: 96e6c59de95e522fd40946848e810ea8c86b32f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ISC license. */

#ifndef S6RCD_EP_H
#define S6RCD_EP_H

#include <stdint.h>

#include <s6-rc/event.h>


 /* Event processor: the dynamic part */

typedef void ep_func_t (s6rc_event_t const *, uint32_t, void *) ;
typedef ep_func_t *ep_func_t_ref ;

extern void ep_free (void) ;
extern int ep_add (uint8_t, char const *, uint32_t, ep_func_t_ref, void *) ;
extern void ep_delete (uint8_t, char const *, uint32_t, ep_func_t_ref, void *) ;
extern void ep_run (s6rc_event_t const *) ;

#endif