… | |
… | |
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 "event.h" |
38 | # include "event.h" |
|
|
39 | #endif |
38 | |
40 | |
39 | #if EV_MULTIPLICITY |
41 | #if EV_MULTIPLICITY |
40 | # define dLOOPev struct ev_loop *loop = (struct ev_loop *)ev->ev_base |
42 | # define dLOOPev struct ev_loop *loop = (struct ev_loop *)ev->ev_base |
41 | # define dLOOPbase struct ev_loop *loop = (struct ev_loop *)base |
43 | # define dLOOPbase struct ev_loop *loop = (struct ev_loop *)base |
42 | #else |
44 | #else |
… | |
… | |
108 | int event_dispatch (void) |
110 | int event_dispatch (void) |
109 | { |
111 | { |
110 | return event_base_dispatch (x_cur); |
112 | return event_base_dispatch (x_cur); |
111 | } |
113 | } |
112 | |
114 | |
113 | #ifdef EV_STANDALONE |
115 | #ifdef EV_EMBED |
114 | void event_set_log_callback (event_log_cb cb) |
116 | void event_set_log_callback (event_log_cb cb) |
115 | { |
117 | { |
116 | /* nop */ |
118 | /* nop */ |
117 | } |
119 | } |
118 | #endif |
120 | #endif |