From 895be78a9e5ecfd127a9c2e212956c0da179b553 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 2 Apr 2012 23:14:41 +0000 Subject: *** empty log message *** --- event.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/event.h b/event.h index aa81928..7558d15 100644 --- a/event.h +++ b/event.h @@ -75,8 +75,6 @@ struct event_base; #define EVLIST_INTERNAL 0x10 #define EVLIST_INIT 0x80 -typedef void (*event_callback_fn)(int, short, void *); - struct event { /* libev watchers we map onto */ @@ -88,7 +86,7 @@ struct event /* compatibility slots */ struct event_base *ev_base; - event_callback_fn ev_callback; + void (*ev_callback)(int, short, void *arg); void *ev_arg; int ev_fd; int ev_pri; @@ -97,8 +95,6 @@ struct event short ev_events; }; -event_callback_fn event_get_callback (const struct event *ev); - #define EV_READ EV_READ #define EV_WRITE EV_WRITE #define EV_PERSIST 0x10 @@ -145,6 +141,9 @@ int event_dispatch (void); typedef void (*event_log_cb)(int severity, const char *msg); void event_set_log_callback(event_log_cb cb); +typedef void (*event_callback_fn)(int, short, void *); +event_callback_fn event_get_callback (const struct event *ev); + void event_set (struct event *ev, int fd, short events, void (*cb)(int, short, void *), void *arg); int event_once (int fd, short events, void (*cb)(int, short, void *), void *arg, struct timeval *tv); -- cgit v1.2.3