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.7 by root, Sun Nov 11 01:07:35 2007 UTC vs.
Revision 1.11 by root, Fri Nov 23 19:13:33 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, rtmn_diff) /* difference realtime - monotonic time */ 5VARx(ev_tstamp, rtmn_diff) /* difference realtime - monotonic time */
6VARx(int, method) 6VARx(int, backend)
7 7
8VARx(ev_tstamp, method_fudge) /* assumed typical timer resolution */ 8VARx(ev_tstamp, backend_fudge) /* assumed typical timer resolution */
9VAR (method_modify, void (*method_modify)(EV_P_ int fd, int oev, int nev)) 9VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev))
10VAR (method_poll , void (*method_poll)(EV_P_ ev_tstamp timeout)) 10VAR (backend_poll , void (*backend_poll)(EV_P_ ev_tstamp timeout))
11VARx(int, backend_fd)
11 12
12VARx(int, postfork) /* true if we need to recreate kernel state after fork */ 13VARx(int, postfork) /* true if we need to recreate kernel state after fork */
13VARx(int, activecnt) /* number of active events */ 14VARx(int, activecnt) /* number of active events */
14 15
15#if EV_USE_SELECT || EV_GENWRAP 16#if EV_USE_SELECT || EV_GENWRAP
16VARx(unsigned char *, vec_ri) 17VARx(void *, vec_ri)
17VARx(unsigned char *, vec_ro) 18VARx(void *, vec_ro)
18VARx(unsigned char *, vec_wi) 19VARx(void *, vec_wi)
19VARx(unsigned char *, vec_wo) 20VARx(void *, vec_wo)
20VARx(int, vec_max) 21VARx(int, vec_max)
21#endif 22#endif
22 23
23#if EV_USE_POLL || EV_GENWRAP 24#if EV_USE_POLL || EV_GENWRAP
24VARx(struct pollfd *, polls) 25VARx(struct pollfd *, polls)
27VARx(int *, pollidxs) /* maps fds into structure indices */ 28VARx(int *, pollidxs) /* maps fds into structure indices */
28VARx(int, pollidxmax) 29VARx(int, pollidxmax)
29#endif 30#endif
30 31
31#if EV_USE_EPOLL || EV_GENWRAP 32#if EV_USE_EPOLL || EV_GENWRAP
32VARx(int, epoll_fd)
33
34VARx(struct epoll_event *, epoll_events) 33VARx(struct epoll_event *, epoll_events)
35VARx(int, epoll_eventmax) 34VARx(int, epoll_eventmax)
36#endif 35#endif
37 36
38#if EV_USE_KQUEUE || EV_GENWRAP 37#if EV_USE_KQUEUE || EV_GENWRAP
39VARx(int, kqueue_fd)
40VARx(struct kevent *, kqueue_changes) 38VARx(struct kevent *, kqueue_changes)
41VARx(int, kqueue_changemax) 39VARx(int, kqueue_changemax)
42VARx(int, kqueue_changecnt) 40VARx(int, kqueue_changecnt)
43VARx(struct kevent *, kqueue_events) 41VARx(struct kevent *, kqueue_events)
44VARx(int, kqueue_eventmax) 42VARx(int, kqueue_eventmax)
43#endif
44
45#if EV_USE_PORT || EV_GENWRAP
46VARx(struct port_event *, port_events)
47VARx(int, port_eventmax)
45#endif 48#endif
46 49
47VARx(ANFD *, anfds) 50VARx(ANFD *, anfds)
48VARx(int, anfdmax) 51VARx(int, anfdmax)
49 52

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines