… | |
… | |
98 | #define EV_WATCHER(type) \ |
98 | #define EV_WATCHER(type) \ |
99 | int active; /* private */ \ |
99 | int active; /* private */ \ |
100 | int pending; /* private */ \ |
100 | int pending; /* private */ \ |
101 | int priority; /* private */ \ |
101 | int priority; /* private */ \ |
102 | EV_COMMON; /* rw */ \ |
102 | EV_COMMON; /* rw */ \ |
103 | void (*cb)(EV_P_ struct type *, int revents); /* private */ /* gets invoked with an eventmask */ |
103 | void (*cb)(EV_P_ struct type *, int revents) /* private */ /* gets invoked with an eventmask */ |
104 | |
104 | |
105 | #define EV_WATCHER_LIST(type) \ |
105 | #define EV_WATCHER_LIST(type) \ |
106 | EV_WATCHER (type); \ |
106 | EV_WATCHER (type); \ |
107 | struct ev_watcher_list *next /* private */ |
107 | struct ev_watcher_list *next /* private */ |
108 | |
108 | |