… | |
… | |
89 | |
89 | |
90 | void *event_init (void) |
90 | void *event_init (void) |
91 | { |
91 | { |
92 | #if EV_MULTIPLICITY |
92 | #if EV_MULTIPLICITY |
93 | if (x_cur) |
93 | if (x_cur) |
94 | x_cur = (struct event_base *)ev_loop_new (EVMETHOD_AUTO); |
94 | x_cur = (struct event_base *)ev_loop_new (EVFLAG_AUTO); |
95 | else |
95 | else |
96 | x_cur = (struct event_base *)ev_default_loop (EVMETHOD_AUTO); |
96 | x_cur = (struct event_base *)ev_default_loop (EVFLAG_AUTO); |
97 | #else |
97 | #else |
98 | assert (("multiple event bases not supported when not compiled with EV_MULTIPLICITY", !x_cur)); |
98 | assert (("multiple event bases not supported when not compiled with EV_MULTIPLICITY", !x_cur)); |
99 | |
99 | |
100 | x_cur = (struct event_base *)(long)ev_default_loop (EVMETHOD_AUTO); |
100 | x_cur = (struct event_base *)(long)ev_default_loop (EVFLAG_AUTO); |
101 | #endif |
101 | #endif |
102 | |
102 | |
103 | return x_cur; |
103 | return x_cur; |
104 | } |
104 | } |
105 | |
105 | |