Remove begin_transmission API
[ebb.git] / libev / ev_vars.h
blob1ab3faca5f676be4dd913d8df49be85b07097632
1 #define VARx(type,name) VAR(name, type name)
3 VARx(ev_tstamp, now_floor) /* last time we refreshed rt_time */
4 VARx(ev_tstamp, mn_now) /* monotonic clock "now" */
5 VARx(ev_tstamp, rtmn_diff) /* difference realtime - monotonic time */
7 VARx(ev_tstamp, io_blocktime)
8 VARx(ev_tstamp, timeout_blocktime)
10 VARx(int, backend)
11 VARx(int, activecnt) /* total number of active events ("refcount") */
12 VARx(unsigned int, loop_count) /* total number of loop iterations/blocks */
14 VARx(int, backend_fd)
15 VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */
16 VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev))
17 VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout))
19 #if !defined(_WIN32) || EV_GENWRAP
20 VARx(pid_t, curpid)
21 #endif
23 VARx(int, postfork) /* true if we need to recreate kernel state after fork */
25 #if EV_USE_SELECT || EV_GENWRAP
26 VARx(void *, vec_ri)
27 VARx(void *, vec_ro)
28 VARx(void *, vec_wi)
29 VARx(void *, vec_wo)
30 VARx(int, vec_max)
31 #endif
33 #if EV_USE_POLL || EV_GENWRAP
34 VARx(struct pollfd *, polls)
35 VARx(int, pollmax)
36 VARx(int, pollcnt)
37 VARx(int *, pollidxs) /* maps fds into structure indices */
38 VARx(int, pollidxmax)
39 #endif
41 #if EV_USE_EPOLL || EV_GENWRAP
42 VARx(struct epoll_event *, epoll_events)
43 VARx(int, epoll_eventmax)
44 #endif
46 #if EV_USE_KQUEUE || EV_GENWRAP
47 VARx(struct kevent *, kqueue_changes)
48 VARx(int, kqueue_changemax)
49 VARx(int, kqueue_changecnt)
50 VARx(struct kevent *, kqueue_events)
51 VARx(int, kqueue_eventmax)
52 #endif
54 #if EV_USE_PORT || EV_GENWRAP
55 VARx(struct port_event *, port_events)
56 VARx(int, port_eventmax)
57 #endif
59 VARx(ANFD *, anfds)
60 VARx(int, anfdmax)
62 VAR (pendings, ANPENDING *pendings [NUMPRI])
63 VAR (pendingmax, int pendingmax [NUMPRI])
64 VAR (pendingcnt, int pendingcnt [NUMPRI])
66 VARx(int *, fdchanges)
67 VARx(int, fdchangemax)
68 VARx(int, fdchangecnt)
70 VARx(WT *, timers)
71 VARx(int, timermax)
72 VARx(int, timercnt)
74 #if EV_PERIODIC_ENABLE || EV_GENWRAP
75 VARx(WT *, periodics)
76 VARx(int, periodicmax)
77 VARx(int, periodiccnt)
78 #endif
80 #if EV_IDLE_ENABLE || EV_GENWRAP
81 VAR (idles, ev_idle **idles [NUMPRI])
82 VAR (idlemax, int idlemax [NUMPRI])
83 VAR (idlecnt, int idlecnt [NUMPRI])
84 #endif
85 VARx(int, idleall) /* total number */
87 VARx(struct ev_prepare **, prepares)
88 VARx(int, preparemax)
89 VARx(int, preparecnt)
91 VARx(struct ev_check **, checks)
92 VARx(int, checkmax)
93 VARx(int, checkcnt)
95 #if EV_FORK_ENABLE || EV_GENWRAP
96 VARx(struct ev_fork **, forks)
97 VARx(int, forkmax)
98 VARx(int, forkcnt)
99 #endif
101 #if EV_USE_INOTIFY || EV_GENWRAP
102 VARx(int, fs_fd)
103 VARx(ev_io, fs_w)
104 VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE])
105 #endif
107 #undef VARx