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