… | |
… | |
32 | #include <stddef.h> |
32 | #include <stddef.h> |
33 | #include <stdlib.h> |
33 | #include <stdlib.h> |
34 | #include <sys/time.h> |
34 | #include <sys/time.h> |
35 | #include <assert.h> |
35 | #include <assert.h> |
36 | |
36 | |
37 | #ifndef EV_EMBED |
37 | #include "ev.h" |
38 | # include "event.h" |
38 | #include "event.h" |
39 | #endif |
|
|
40 | |
39 | |
41 | #if EV_MULTIPLICITY |
40 | #if EV_MULTIPLICITY |
42 | # define dLOOPev struct ev_loop *loop = (struct ev_loop *)ev->ev_base |
41 | # define dLOOPev struct ev_loop *loop = (struct ev_loop *)ev->ev_base |
43 | # define dLOOPbase struct ev_loop *loop = (struct ev_loop *)base |
42 | # define dLOOPbase struct ev_loop *loop = (struct ev_loop *)base |
44 | #else |
43 | #else |
… | |
… | |
110 | int event_dispatch (void) |
109 | int event_dispatch (void) |
111 | { |
110 | { |
112 | return event_base_dispatch (x_cur); |
111 | return event_base_dispatch (x_cur); |
113 | } |
112 | } |
114 | |
113 | |
115 | #ifdef EV_EMBED |
114 | #ifdef EV_STANDALONE |
116 | void event_set_log_callback (event_log_cb cb) |
115 | void event_set_log_callback (event_log_cb cb) |
117 | { |
116 | { |
118 | /* nop */ |
117 | /* nop */ |
119 | } |
118 | } |
120 | #endif |
119 | #endif |