… | |
… | |
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 | #ifndef EV_EMBED |
|
|
35 | # include "ev.h" |
34 | #include <ev.h> |
36 | #endif |
|
|
37 | |
35 | |
38 | #ifdef __cplusplus |
36 | #ifdef __cplusplus |
39 | extern "C" { |
37 | extern "C" { |
40 | #endif |
38 | #endif |
41 | |
39 | |
… | |
… | |
121 | int event_base_loopexit (struct event_base *base, struct timeval *tv); |
119 | int event_base_loopexit (struct event_base *base, struct timeval *tv); |
122 | int event_base_dispatch (struct event_base *base); |
120 | int event_base_dispatch (struct event_base *base); |
123 | int event_base_once (struct event_base *base, int fd, short events, void (*cb)(int, short, void *), void *arg, struct timeval *tv); |
121 | int event_base_once (struct event_base *base, int fd, short events, void (*cb)(int, short, void *), void *arg, struct timeval *tv); |
124 | int event_base_priority_init (struct event_base *base, int fd); |
122 | int event_base_priority_init (struct event_base *base, int fd); |
125 | |
123 | |
126 | #ifndef EV_EMBED |
124 | #ifndef EV_STANDALONE |
127 | # include "event_compat.h" |
125 | # include "event_compat.h" |
128 | #endif |
126 | #endif |
129 | |
127 | |
130 | #ifdef __cplusplus |
128 | #ifdef __cplusplus |
131 | } |
129 | } |