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

Comparing libev/ev.h (file contents):
Revision 1.57 by root, Mon Nov 12 21:51:14 2007 UTC vs.
Revision 1.62 by root, Thu Nov 22 12:28:27 2007 UTC

239#define EVMETHOD_SELECT 0x00000001 /* about anywhere */ 239#define EVMETHOD_SELECT 0x00000001 /* about anywhere */
240#define EVMETHOD_POLL 0x00000002 /* !win */ 240#define EVMETHOD_POLL 0x00000002 /* !win */
241#define EVMETHOD_EPOLL 0x00000004 /* linux */ 241#define EVMETHOD_EPOLL 0x00000004 /* linux */
242#define EVMETHOD_KQUEUE 0x00000008 /* bsd */ 242#define EVMETHOD_KQUEUE 0x00000008 /* bsd */
243#define EVMETHOD_DEVPOLL 0x00000010 /* solaris 8 */ /* NYI */ 243#define EVMETHOD_DEVPOLL 0x00000010 /* solaris 8 */ /* NYI */
244#define EVMETHOD_PORT 0x00000020 /* solaris 10 */ /* NYI */ 244#define EVMETHOD_PORT 0x00000020 /* solaris 10 */
245#define EVMETHOD_ALL 0x0000ffff /* all methods, also future ones, or so */
245 246
246/* flag bits */ 247/* flag bits */
247#define EVFLAG_NOENV 0x01000000 /* do NOT consult environment */ 248#define EVFLAG_NOENV 0x01000000 /* do NOT consult environment */
248 249
249#if EV_PROTOTYPES 250#if EV_PROTOTYPES
267void ev_set_syserr_cb (void (*cb)(const char *msg)); 268void ev_set_syserr_cb (void (*cb)(const char *msg));
268 269
269# if EV_MULTIPLICITY 270# if EV_MULTIPLICITY
270/* the default loop is the only one that handles signals and child watchers */ 271/* the default loop is the only one that handles signals and child watchers */
271/* you can call this as often as you like */ 272/* you can call this as often as you like */
272struct ev_loop *ev_default_loop (unsigned int flags); /* returns default loop */ 273static struct ev_loop *
274ev_default_loop (unsigned int flags)
275{
276 extern struct ev_loop *ev_default_loop_ptr;
277 extern struct ev_loop *ev_default_loop_init (unsigned int flags);
278
279 if (!ev_default_loop_ptr)
280 ev_default_loop_init (flags);
281
282 return ev_default_loop_ptr;
283}
273 284
274/* create and destroy alternative loops that don't handle signals */ 285/* create and destroy alternative loops that don't handle signals */
275struct ev_loop *ev_loop_new (unsigned int flags); 286struct ev_loop *ev_loop_new (unsigned int flags);
276void ev_loop_destroy (EV_P); 287void ev_loop_destroy (EV_P);
277void ev_loop_fork (EV_P); 288void ev_loop_fork (EV_P);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines