… | |
… | |
102 | void event_set (struct event *ev, int fd, short events, void (*cb)(int, short, void *), void *arg); |
102 | void event_set (struct event *ev, int fd, short events, void (*cb)(int, short, void *), void *arg); |
103 | int event_once (int fd, short events, void (*cb)(int, short, void *), void *arg, struct timeval *tv); |
103 | int event_once (int fd, short events, void (*cb)(int, short, void *), void *arg, struct timeval *tv); |
104 | |
104 | |
105 | int event_add (struct event *ev, struct timeval *tv); |
105 | int event_add (struct event *ev, struct timeval *tv); |
106 | int event_del (struct event *ev); |
106 | int event_del (struct event *ev); |
|
|
107 | void event_active (struct event *ev, int res, short ncalls); /* ncalls is being ignored */ |
107 | |
108 | |
108 | int event_pending (struct event *ev, short, struct timeval *tv); |
109 | int event_pending (struct event *ev, short, struct timeval *tv); |
109 | |
110 | |
110 | int event_priority_init (int npri); |
111 | int event_priority_init (int npri); |
111 | int event_priority_set (struct event *ev, int pri); |
112 | int event_priority_set (struct event *ev, int pri); |
… | |
… | |
118 | int event_base_dispatch (struct event_base *base); |
119 | 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); |
120 | 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); |
121 | int event_base_priority_init (struct event_base *base, int fd); |
121 | |
122 | |
122 | #ifndef EV_STANDALONE |
123 | #ifndef EV_STANDALONE |
123 | # include "event_compat.h" |
124 | # include <event_compat.h> |
124 | #endif |
125 | #endif |
125 | |
126 | |
126 | #ifdef __cplusplus |
127 | #ifdef __cplusplus |
127 | } |
128 | } |
128 | #endif |
129 | #endif |