diff options
Diffstat (limited to 'src/loop.h')
-rw-r--r-- | src/loop.h | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -1,19 +1,18 @@ #ifndef _RUNES_LOOP_H #define _RUNES_LOOP_H -#include <uv.h> +#include <event2/event.h> struct runes_loop { - uv_loop_t *loop; + struct event_base *base; }; RunesLoop *runes_loop_new(void); void runes_loop_run(RunesLoop *loop); -void runes_loop_start_work(RunesLoop *loop, void *t, - void (*work_cb)(void*), - int (*after_work_cb)(void*)); -void runes_loop_timer_set(RunesLoop *loop, int timeout, int repeat, - void *t, void (*cb)(void*)); +void runes_loop_start_work( + RunesLoop *loop, int fd, void *t, int (*cb)(void*)); +void runes_loop_timer_set( + RunesLoop *loop, int timeout, void *t, void (*cb)(void*)); void runes_loop_delete(RunesLoop *loop); #endif |