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

Comparing libev/ev.h (file contents):
Revision 1.45 by root, Fri Nov 9 21:48:23 2007 UTC vs.
Revision 1.46 by root, Sat Nov 10 00:55:27 2007 UTC

86 86
87#define EV_VERSION_MAJOR 1 87#define EV_VERSION_MAJOR 1
88#define EV_VERSION_MINOR 1 88#define EV_VERSION_MINOR 1
89 89
90#ifndef EV_CB_DECLARE 90#ifndef EV_CB_DECLARE
91# define EV_CB_DECLARE(type) void (*cb)(EV_P_ struct type *w, int revents) 91# define EV_CB_DECLARE(type) void (*cb)(EV_P_ struct type *w, int revents);
92#endif 92#endif
93#ifndef EV_CB_INVOKE 93#ifndef EV_CB_INVOKE
94# define EV_CB_INVOKE(watcher,revents) (watcher)->cb (EV_A_ (watcher), (revents)) 94# define EV_CB_INVOKE(watcher,revents) (watcher)->cb (EV_A_ (watcher), (revents))
95#endif 95#endif
96 96
210/* the presence of this union forces similar struct layout */ 210/* the presence of this union forces similar struct layout */
211union ev_any_watcher 211union ev_any_watcher
212{ 212{
213 struct ev_watcher w; 213 struct ev_watcher w;
214 struct ev_watcher_list wl; 214 struct ev_watcher_list wl;
215
215 struct ev_io io; 216 struct ev_io io;
216 struct ev_timer timer; 217 struct ev_timer timer;
217 struct ev_periodic periodic; 218 struct ev_periodic periodic;
218 struct ev_signal signal;
219 struct ev_idle idle; 219 struct ev_idle idle;
220 struct ev_child child;
221 struct ev_prepare prepare; 220 struct ev_prepare prepare;
222 struct ev_check check; 221 struct ev_check check;
222 struct ev_signal signal;
223 struct ev_child child;
223}; 224};
224 225
225#define EVMETHOD_AUTO 0 /* consults environment */ 226#define EVMETHOD_AUTO 0 /* consults environment */
226#define EVMETHOD_SELECT 1 227#define EVMETHOD_SELECT 1
227#define EVMETHOD_POLL 2 228#define EVMETHOD_POLL 2

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines