/*
event.h -- I/O, timeout and signal event handling
- Copyright (C) 2012 Guus Sliepen <guus@tinc-vpn.org>
+ Copyright (C) 2014 Guus Sliepen <guus@meshlink.io>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
int flags;
io_cb_t cb;
void *data;
- splay_node_t node;
+ struct splay_node_t node;
} io_t;
typedef struct timeout_t {
struct timeval tv;
timeout_cb_t cb;
void *data;
- splay_node_t node;
+ struct splay_node_t node;
} timeout_t;
typedef struct signal_t {
int signum;
signal_cb_t cb;
void *data;
- splay_node_t node;
+ struct splay_node_t node;
} signal_t;
extern struct timeval now;
extern void signal_del(signal_t *sig);
extern bool event_loop(void);
+extern void event_flush_output(void);
extern void event_exit(void);
#endif