X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=common-src%2Fevent.h;fp=common-src%2Fevent.h;h=be64f8931e26733d712691ea881f641987ce9e44;hb=12179dea039515c06168c0037d048566a3f623de;hp=367f3b513e04085fdd87f869bba6b08066079511;hpb=94c03cae686e4196a345d72452fda2a5203768ce;p=debian%2Famanda diff --git a/common-src/event.h b/common-src/event.h index 367f3b5..be64f89 100644 --- a/common-src/event.h +++ b/common-src/event.h @@ -24,7 +24,7 @@ * file named AUTHORS, in the root directory of this distribution. */ /* - * $Id: event.h,v 1.6 2005/11/30 22:35:11 martinea Exp $ + * $Id: event.h,v 1.9 2006/06/16 10:55:05 martinea Exp $ */ #ifndef EVENT_H #define EVENT_H @@ -66,7 +66,7 @@ typedef enum { * The function signature for functions that get called when an event * fires. */ -typedef void (*event_fn_t) P((void *)); +typedef void (*event_fn_t)(void *); /* * Register an event handler. @@ -82,23 +82,27 @@ typedef void (*event_fn_t) P((void *)); * count on the time events being too accurate. They depend on the * caller calling event_loop() often enough. */ -event_handle_t *event_register P((event_id_t, event_type_t, - event_fn_t, void *)); +event_handle_t *event_register(event_id_t, event_type_t, event_fn_t, void *); /* * Release an event handler. */ -void event_release P((event_handle_t *)); +void event_release(event_handle_t *); /* * Wake up all EV_WAIT events waiting on a specific id */ -int event_wakeup P((event_id_t)); +int event_wakeup(event_id_t); + +/* + * Block until the event is terminated. + */ +int event_wait(event_handle_t *); /* * Process events. If the argument is nonzero, then the loop does * not block. */ -void event_loop P((const int)); +void event_loop(const int); #endif /* EVENT_H */