… | |
… | |
29 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
30 | */ |
30 | */ |
31 | #ifndef _EVENT_H_ |
31 | #ifndef _EVENT_H_ |
32 | #define _EVENT_H_ |
32 | #define _EVENT_H_ |
33 | |
33 | |
|
|
34 | #include "ev.h" |
|
|
35 | |
34 | #ifdef __cplusplus |
36 | #ifdef __cplusplus |
35 | extern "C" { |
37 | extern "C" { |
36 | #endif |
38 | #endif |
37 | |
|
|
38 | #include "ev.h" |
|
|
39 | |
39 | |
40 | struct event |
40 | struct event |
41 | { |
41 | { |
42 | /* libev watchers we map onto */ |
42 | /* libev watchers we map onto */ |
43 | union { |
43 | union { |
… | |
… | |
117 | int event_base_loopexit (struct event_base *base, struct timeval *tv); |
117 | int event_base_loopexit (struct event_base *base, struct timeval *tv); |
118 | int event_base_dispatch (struct event_base *base); |
118 | int event_base_dispatch (struct event_base *base); |
119 | int event_base_once (struct event_base *base, int fd, short events, void (*cb)(int, short, void *), void *arg, struct timeval *tv); |
119 | int event_base_once (struct event_base *base, int fd, short events, void (*cb)(int, short, void *), void *arg, struct timeval *tv); |
120 | int event_base_priority_init (struct event_base *base, int fd); |
120 | int event_base_priority_init (struct event_base *base, int fd); |
121 | |
121 | |
|
|
122 | #ifndef EV_STANDALONE |
|
|
123 | # include "event_compat.h" |
122 | #endif |
124 | #endif |
123 | |
125 | |
|
|
126 | #ifdef __cplusplus |
|
|
127 | } |
|
|
128 | #endif |
|
|
129 | |
|
|
130 | #endif |
|
|
131 | |