16 #define EV_READABLE (1 << 0)
17 #define EV_WRITABLE (1 << 1)
18 #define EV_EXCEPTIONAL (1 << 2)
void disable_fd_event(fd_event *event)
void enable_timed_event(timed_event *event)
void remove_timed_event(event_system *ev_sys, timed_event *event)
void add_fd_event(event_system *ev_sys, fd_event *event, int options)
void add_timed_event(event_system *ev_sys, timed_event *event)
void enable_fd_event(fd_event *event)
void rasta_remove_fd_event(rasta *h, fd_event *event)
int(* event_ptr)(void *h, int fd)
Definition: events.h:14
struct event_system event_system
Definition: events.h:10
struct rasta rasta
Definition: events.h:11
void remove_fd_event(event_system *ev_sys, fd_event *event)
void disable_timed_event(timed_event *event)
struct timed_event timed_event
void rasta_add_fd_event(rasta *h, fd_event *event, int options)
void * carry_data
Definition: events.h:38
struct fd_event * next
Definition: events.h:40
event_ptr callback
Definition: events.h:37
int fd
Definition: events.h:41
int options
Definition: events.h:42
struct fd_event * prev
Definition: events.h:39
char enabled
Definition: events.h:43
struct timed_event * prev
Definition: events.h:26
struct timed_event * next
Definition: events.h:27
uint64_t last_call
Definition: events.h:29
event_ptr callback
Definition: events.h:24
void * carry_data
Definition: events.h:25
char enabled
Definition: events.h:30
uint64_t interval
Definition: events.h:28