diff options
author | root <root> | 2007-11-09 17:07:59 +0000 |
---|---|---|
committer | root <root> | 2007-11-09 17:07:59 +0000 |
commit | 54ae3adf55df78d268cd7f1633f5e7d44f687db2 (patch) | |
tree | bb46427a6af251878b39736d341f51cafdfed02c /event.h | |
parent | e73e5ae567e0e8053897ff051ba7bb514cf9007d (diff) |
move event_base predeclaration higher in the file
Diffstat (limited to 'event.h')
-rw-r--r-- | event.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -31,12 +31,18 @@ #ifndef _EVENT_H_ #define _EVENT_H_ -#include <ev.h> +#ifdef EV_H +# include EV_H +#else +# include <ev.h> +#endif #ifdef __cplusplus extern "C" { #endif +struct event_base; + struct event { /* libev watchers we map onto */ @@ -111,8 +117,6 @@ int event_pending (struct event *ev, short, struct timeval *tv); int event_priority_init (int npri); int event_priority_set (struct event *ev, int pri); -struct event_base; - int event_base_set (struct event_base *base, struct event *ev); int event_base_loop (struct event_base *base, int); int event_base_loopexit (struct event_base *base, struct timeval *tv); |