ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev_vars.h
Revision: 1.2
Committed: Sun Nov 4 00:24:17 2007 UTC (16 years, 6 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.1: +61 -63 lines
Log Message:
wow the event api is broken

File Contents

# User Rev Content
1 root 1.1 #define VARx(type,name) VAR(name, type name)
2    
3 root 1.2 VARx(ev_tstamp, now_floor) /* last time we refreshed rt_time */
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 */
7     VARx(int, method)
8    
9     VARx(ev_tstamp, method_fudge) /* assumed typical timer resolution */
10     VAR (method_modify, void (*method_modify)(EV_P_ int fd, int oev, int nev))
11     VAR (method_poll , void (*method_poll)(EV_P_ ev_tstamp timeout))
12    
13     VARx(int, activecnt) /* number of active events */
14    
15     #if EV_USE_SELECT || EV_GENWRAP
16     VARx(unsigned char *, vec_ri)
17     VARx(unsigned char *, vec_ro)
18     VARx(unsigned char *, vec_wi)
19     VARx(unsigned char *, vec_wo)
20     VARx(int, vec_max)
21 root 1.1 #endif
22    
23 root 1.2 #if EV_USE_POLL || EV_GENWRAP
24     VARx(struct pollfd *, polls)
25     VARx(int, pollmax)
26     VARx(int, pollcnt)
27     VARx(int *, pollidxs) /* maps fds into structure indices */
28     VARx(int, pollidxmax)
29 root 1.1 #endif
30    
31 root 1.2 #if EV_USE_EPOLL || EV_GENWRAP
32     VARx(int, epoll_fd)
33 root 1.1
34 root 1.2 VARx(struct epoll_event *, epoll_events)
35     VARx(int, epoll_eventmax)
36 root 1.1 #endif
37    
38 root 1.2 #if EV_USE_KQUEUE || EV_GENWRAP
39     VARx(int, kqueue_fd)
40     VARx(struct kevent *, kqueue_changes)
41     VARx(int, kqueue_changemax)
42     VARx(int, kqueue_changecnt)
43     VARx(struct kevent *, kqueue_events)
44     VARx(int, kqueue_eventmax)
45 root 1.1 #endif
46    
47 root 1.2 VARx(ANFD *, anfds)
48     VARx(int, anfdmax)
49 root 1.1
50 root 1.2 VAR (pendings, ANPENDING *pendings [NUMPRI])
51     VAR (pendingmax, int pendingmax [NUMPRI])
52     VAR (pendingcnt, int pendingcnt [NUMPRI])
53 root 1.1
54 root 1.2 VARx(int *, fdchanges)
55     VARx(int, fdchangemax)
56     VARx(int, fdchangecnt)
57 root 1.1
58 root 1.2 VARx(struct ev_timer **, timers)
59     VARx(int, timermax)
60     VARx(int, timercnt)
61 root 1.1
62 root 1.2 VARx(struct ev_periodic **, periodics)
63     VARx(int, periodicmax)
64     VARx(int, periodiccnt)
65 root 1.1
66 root 1.2 VARx(struct ev_idle **, idles)
67     VARx(int, idlemax)
68     VARx(int, idlecnt)
69 root 1.1
70 root 1.2 VARx(struct ev_prepare **, prepares)
71     VARx(int, preparemax)
72     VARx(int, preparecnt)
73 root 1.1
74 root 1.2 VARx(struct ev_check **, checks)
75     VARx(int, checkmax)
76     VARx(int, checkcnt)
77 root 1.1
78 root 1.2 VAR (childs, struct ev_child *childs [PID_HASHSIZE])
79     VARx(struct ev_signal, childev)
80 root 1.1
81 root 1.2 VARx(struct ev_io, sigev)
82 root 1.1
83     #undef VARx
84