summaryrefslogtreecommitdiff
path: root/lib/event.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-27 22:28:49 +0000
committerMartin Mares <mj@ucw.cz>2000-04-27 22:28:49 +0000
commit8f6accb5bb26d534576e086894c107387f67906a (patch)
treeb7c02cbdaca870a6f86e0110d2b1d270f5c89d77 /lib/event.h
parent987de54578ce4053d737c64ea924a32f46a441a7 (diff)
Event handlers no longer return re-queue flag. Instead of using it, just
call ev_schedule() on the same handler which should work perfectly now.
Diffstat (limited to 'lib/event.h')
-rw-r--r--lib/event.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/event.h b/lib/event.h
index 32a9a3fa..d8500413 100644
--- a/lib/event.h
+++ b/lib/event.h
@@ -13,7 +13,7 @@
typedef struct event {
resource r;
- int (*hook)(void *);
+ void (*hook)(void *);
void *data;
node n; /* Internal link */
} event;
@@ -23,7 +23,7 @@ typedef list event_list;
extern event_list global_event_list;
event *ev_new(pool *);
-int ev_run(event *);
+void ev_run(event *);
#define ev_init_list(el) init_list(el)
void ev_enqueue(event_list *, event *);
void ev_schedule(event *);