1 | #define VARx(type,name) VAR(name, type name) |
1 | #define VARx(type,name) VAR(name, type name) |
2 | |
2 | |
3 | VARx(ev_tstamp, now_floor) /* last time we refreshed rt_time */ |
3 | VARx(ev_tstamp, now_floor) /* last time we refreshed rt_time */ |
4 | VARx(ev_tstamp, mn_now) /* monotonic clock "now" */ |
4 | VARx(ev_tstamp, mn_now) /* monotonic clock "now" */ |
5 | VARx(ev_tstamp, rt_now) |
|
|
6 | VARx(ev_tstamp, rtmn_diff) /* difference realtime - monotonic time */ |
5 | VARx(ev_tstamp, rtmn_diff) /* difference realtime - monotonic time */ |
7 | VARx(int, method) |
6 | VARx(int, backend) |
8 | |
7 | |
9 | VARx(ev_tstamp, method_fudge) /* assumed typical timer resolution */ |
8 | VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */ |
10 | VAR (method_modify, void (*method_modify)(EV_P_ int fd, int oev, int nev)) |
9 | VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev)) |
11 | VAR (method_poll , void (*method_poll)(EV_P_ ev_tstamp timeout)) |
10 | VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout)) |
|
|
11 | VARx(int, backend_fd) |
12 | |
12 | |
|
|
13 | VARx(int, postfork) /* true if we need to recreate kernel state after fork */ |
13 | VARx(int, activecnt) /* number of active events */ |
14 | VARx(int, activecnt) /* number of active events */ |
14 | |
15 | |
15 | #if EV_USE_SELECT || EV_GENWRAP |
16 | #if EV_USE_SELECT || EV_GENWRAP |
16 | VARx(unsigned char *, vec_ri) |
17 | VARx(void *, vec_ri) |
17 | VARx(unsigned char *, vec_ro) |
18 | VARx(void *, vec_ro) |
18 | VARx(unsigned char *, vec_wi) |
19 | VARx(void *, vec_wi) |
19 | VARx(unsigned char *, vec_wo) |
20 | VARx(void *, vec_wo) |
20 | VARx(int, vec_max) |
21 | VARx(int, vec_max) |
21 | #endif |
22 | #endif |
22 | |
23 | |
23 | #if EV_USE_POLL || EV_GENWRAP |
24 | #if EV_USE_POLL || EV_GENWRAP |
24 | VARx(struct pollfd *, polls) |
25 | VARx(struct pollfd *, polls) |
… | |
… | |
27 | VARx(int *, pollidxs) /* maps fds into structure indices */ |
28 | VARx(int *, pollidxs) /* maps fds into structure indices */ |
28 | VARx(int, pollidxmax) |
29 | VARx(int, pollidxmax) |
29 | #endif |
30 | #endif |
30 | |
31 | |
31 | #if EV_USE_EPOLL || EV_GENWRAP |
32 | #if EV_USE_EPOLL || EV_GENWRAP |
32 | VARx(int, epoll_fd) |
|
|
33 | |
|
|
34 | VARx(struct epoll_event *, epoll_events) |
33 | VARx(struct epoll_event *, epoll_events) |
35 | VARx(int, epoll_eventmax) |
34 | VARx(int, epoll_eventmax) |
36 | #endif |
35 | #endif |
37 | |
36 | |
38 | #if EV_USE_KQUEUE || EV_GENWRAP |
37 | #if EV_USE_KQUEUE || EV_GENWRAP |
39 | VARx(int, kqueue_fd) |
|
|
40 | VARx(struct kevent *, kqueue_changes) |
38 | VARx(struct kevent *, kqueue_changes) |
41 | VARx(int, kqueue_changemax) |
39 | VARx(int, kqueue_changemax) |
42 | VARx(int, kqueue_changecnt) |
40 | VARx(int, kqueue_changecnt) |
43 | VARx(struct kevent *, kqueue_events) |
41 | VARx(struct kevent *, kqueue_events) |
44 | VARx(int, kqueue_eventmax) |
42 | VARx(int, kqueue_eventmax) |
|
|
43 | #endif |
|
|
44 | |
|
|
45 | #if EV_USE_PORT || EV_GENWRAP |
|
|
46 | VARx(struct port_event *, port_events) |
|
|
47 | VARx(int, port_eventmax) |
45 | #endif |
48 | #endif |
46 | |
49 | |
47 | VARx(ANFD *, anfds) |
50 | VARx(ANFD *, anfds) |
48 | VARx(int, anfdmax) |
51 | VARx(int, anfdmax) |
49 | |
52 | |
… | |
… | |
57 | |
60 | |
58 | VARx(struct ev_timer **, timers) |
61 | VARx(struct ev_timer **, timers) |
59 | VARx(int, timermax) |
62 | VARx(int, timermax) |
60 | VARx(int, timercnt) |
63 | VARx(int, timercnt) |
61 | |
64 | |
|
|
65 | #if EV_PERIODICS || EV_GENWRAP |
62 | VARx(struct ev_periodic **, periodics) |
66 | VARx(struct ev_periodic **, periodics) |
63 | VARx(int, periodicmax) |
67 | VARx(int, periodicmax) |
64 | VARx(int, periodiccnt) |
68 | VARx(int, periodiccnt) |
|
|
69 | #endif |
65 | |
70 | |
66 | VARx(struct ev_idle **, idles) |
71 | VARx(struct ev_idle **, idles) |
67 | VARx(int, idlemax) |
72 | VARx(int, idlemax) |
68 | VARx(int, idlecnt) |
73 | VARx(int, idlecnt) |
69 | |
74 | |