ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev_vars.h
(Generate patch)

Comparing libev/ev_vars.h (file contents):
Revision 1.4 by root, Tue Nov 6 00:52:33 2007 UTC vs.
Revision 1.16 by root, Thu Nov 29 17:28:13 2007 UTC

1#define VARx(type,name) VAR(name, type name) 1#define VARx(type,name) VAR(name, type name)
2 2
3VARx(ev_tstamp, now_floor) /* last time we refreshed rt_time */ 3VARx(ev_tstamp, now_floor) /* last time we refreshed rt_time */
4VARx(ev_tstamp, mn_now) /* monotonic clock "now" */ 4VARx(ev_tstamp, mn_now) /* monotonic clock "now" */
5VARx(ev_tstamp, rt_now)
6VARx(ev_tstamp, rtmn_diff) /* difference realtime - monotonic time */ 5VARx(ev_tstamp, rtmn_diff) /* difference realtime - monotonic time */
7VARx(int, method) 6VARx(int, backend)
7VARx(int, activecnt) /* total number of active events ("refcount") */
8 8
9VARx(ev_tstamp, method_fudge) /* assumed typical timer resolution */ 9VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */
10VAR (method_modify, void (*method_modify)(EV_P_ int fd, int oev, int nev)) 10VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev))
11VAR (method_poll , void (*method_poll)(EV_P_ ev_tstamp timeout)) 11VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout))
12VARx(int, backend_fd)
13
14#if !defined(_WIN32) || EV_GENWRAP
15VARx(pid_t, curpid)
16#endif
12 17
13VARx(int, postfork) /* true if we need to recreate kernel state after fork */ 18VARx(int, postfork) /* true if we need to recreate kernel state after fork */
14VARx(int, activecnt) /* number of active events */
15 19
16#if EV_USE_SELECT || EV_GENWRAP 20#if EV_USE_SELECT || EV_GENWRAP
17VARx(unsigned char *, vec_ri) 21VARx(void *, vec_ri)
18VARx(unsigned char *, vec_ro) 22VARx(void *, vec_ro)
19VARx(unsigned char *, vec_wi) 23VARx(void *, vec_wi)
20VARx(unsigned char *, vec_wo) 24VARx(void *, vec_wo)
21VARx(int, vec_max) 25VARx(int, vec_max)
22#endif 26#endif
23 27
24#if EV_USE_POLL || EV_GENWRAP 28#if EV_USE_POLL || EV_GENWRAP
25VARx(struct pollfd *, polls) 29VARx(struct pollfd *, polls)
28VARx(int *, pollidxs) /* maps fds into structure indices */ 32VARx(int *, pollidxs) /* maps fds into structure indices */
29VARx(int, pollidxmax) 33VARx(int, pollidxmax)
30#endif 34#endif
31 35
32#if EV_USE_EPOLL || EV_GENWRAP 36#if EV_USE_EPOLL || EV_GENWRAP
33VARx(int, epoll_fd)
34
35VARx(struct epoll_event *, epoll_events) 37VARx(struct epoll_event *, epoll_events)
36VARx(int, epoll_eventmax) 38VARx(int, epoll_eventmax)
37#endif 39#endif
38 40
39#if EV_USE_KQUEUE || EV_GENWRAP 41#if EV_USE_KQUEUE || EV_GENWRAP
40VARx(int, kqueue_fd)
41VARx(struct kevent *, kqueue_changes) 42VARx(struct kevent *, kqueue_changes)
42VARx(int, kqueue_changemax) 43VARx(int, kqueue_changemax)
43VARx(int, kqueue_changecnt) 44VARx(int, kqueue_changecnt)
44VARx(struct kevent *, kqueue_events) 45VARx(struct kevent *, kqueue_events)
45VARx(int, kqueue_eventmax) 46VARx(int, kqueue_eventmax)
47#endif
48
49#if EV_USE_PORT || EV_GENWRAP
50VARx(struct port_event *, port_events)
51VARx(int, port_eventmax)
46#endif 52#endif
47 53
48VARx(ANFD *, anfds) 54VARx(ANFD *, anfds)
49VARx(int, anfdmax) 55VARx(int, anfdmax)
50 56
58 64
59VARx(struct ev_timer **, timers) 65VARx(struct ev_timer **, timers)
60VARx(int, timermax) 66VARx(int, timermax)
61VARx(int, timercnt) 67VARx(int, timercnt)
62 68
69#if EV_PERIODIC_ENABLE || EV_GENWRAP
63VARx(struct ev_periodic **, periodics) 70VARx(struct ev_periodic **, periodics)
64VARx(int, periodicmax) 71VARx(int, periodicmax)
65VARx(int, periodiccnt) 72VARx(int, periodiccnt)
73#endif
66 74
67VARx(struct ev_idle **, idles) 75VARx(struct ev_idle **, idles)
68VARx(int, idlemax) 76VARx(int, idlemax)
69VARx(int, idlecnt) 77VARx(int, idlecnt)
70 78
74 82
75VARx(struct ev_check **, checks) 83VARx(struct ev_check **, checks)
76VARx(int, checkmax) 84VARx(int, checkmax)
77VARx(int, checkcnt) 85VARx(int, checkcnt)
78 86
87#if EV_FORK_ENABLE || EV_GENWRAP
88VARx(struct ev_fork **, forks)
89VARx(int, forkmax)
90VARx(int, forkcnt)
91#endif
92
93#if EV_USE_INOTIFY || EV_GENWRAP
94VARx(int, fs_fd)
95VARx(ev_io, fs_w)
96VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE])
97#endif
98
79#undef VARx 99#undef VARx
80 100

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines