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

Comparing libev/ev.h (file contents):
Revision 1.98 by root, Tue Apr 15 04:34:07 2008 UTC vs.
Revision 1.99 by root, Wed Apr 16 01:37:14 2008 UTC

123#endif 123#endif
124 124
125/*****************************************************************************/ 125/*****************************************************************************/
126 126
127/* eventmask, revents, events... */ 127/* eventmask, revents, events... */
128#define EV_UNDEF -1L /* guaranteed to be invalid */ 128#define EV_UNDEF -1 /* guaranteed to be invalid */
129#define EV_NONE 0x00L /* no events */ 129#define EV_NONE 0x00 /* no events */
130#define EV_READ 0x01L /* ev_io detected read will not block */ 130#define EV_READ 0x01 /* ev_io detected read will not block */
131#define EV_WRITE 0x02L /* ev_io detected write will not block */ 131#define EV_WRITE 0x02 /* ev_io detected write will not block */
132#define EV_IOFDSET 0x80L /* internal use only */ 132#define EV_IOFDSET 0x80 /* internal use only */
133#define EV_TIMEOUT 0x00000100L /* timer timed out */ 133#define EV_TIMEOUT 0x00000100 /* timer timed out */
134#define EV_PERIODIC 0x00000200L /* periodic timer timed out */ 134#define EV_PERIODIC 0x00000200 /* periodic timer timed out */
135#define EV_SIGNAL 0x00000400L /* signal was received */ 135#define EV_SIGNAL 0x00000400 /* signal was received */
136#define EV_CHILD 0x00000800L /* child/pid had status change */ 136#define EV_CHILD 0x00000800 /* child/pid had status change */
137#define EV_STAT 0x00001000L /* stat data changed */ 137#define EV_STAT 0x00001000 /* stat data changed */
138#define EV_IDLE 0x00002000L /* event loop is idling */ 138#define EV_IDLE 0x00002000 /* event loop is idling */
139#define EV_PREPARE 0x00004000L /* event loop about to poll */ 139#define EV_PREPARE 0x00004000 /* event loop about to poll */
140#define EV_CHECK 0x00008000L /* event loop finished poll */ 140#define EV_CHECK 0x00008000 /* event loop finished poll */
141#define EV_EMBED 0x00010000L /* embedded event loop needs sweep */ 141#define EV_EMBED 0x00010000 /* embedded event loop needs sweep */
142#define EV_FORK 0x00020000L /* event loop resumed in child */ 142#define EV_FORK 0x00020000 /* event loop resumed in child */
143#define EV_ASYNC 0x00040000L /* async intra-loop signal */ 143#define EV_ASYNC 0x00040000 /* async intra-loop signal */
144#define EV_ERROR 0x80000000L /* sent when an error occurs */ 144#define EV_ERROR 0x80000000 /* sent when an error occurs */
145 145
146/* can be used to add custom fields to all watchers, while losing binary compatibility */ 146/* can be used to add custom fields to all watchers, while losing binary compatibility */
147#ifndef EV_COMMON 147#ifndef EV_COMMON
148# define EV_COMMON void *data; 148# define EV_COMMON void *data;
149#endif 149#endif
371#endif 371#endif
372}; 372};
373 373
374/* bits for ev_default_loop and ev_loop_new */ 374/* bits for ev_default_loop and ev_loop_new */
375/* the default */ 375/* the default */
376#define EVFLAG_AUTO 0x00000000UL /* not quite a mask */ 376#define EVFLAG_AUTO 0x00000000U /* not quite a mask */
377/* flag bits */ 377/* flag bits */
378#define EVFLAG_NOENV 0x01000000UL /* do NOT consult environment */ 378#define EVFLAG_NOENV 0x01000000U /* do NOT consult environment */
379#define EVFLAG_FORKCHECK 0x02000000UL /* check for a fork in each iteration */ 379#define EVFLAG_FORKCHECK 0x02000000U /* check for a fork in each iteration */
380/* method bits to be ored together */ 380/* method bits to be ored together */
381#define EVBACKEND_SELECT 0x00000001UL /* about anywhere */ 381#define EVBACKEND_SELECT 0x00000001U /* about anywhere */
382#define EVBACKEND_POLL 0x00000002UL /* !win */ 382#define EVBACKEND_POLL 0x00000002U /* !win */
383#define EVBACKEND_EPOLL 0x00000004UL /* linux */ 383#define EVBACKEND_EPOLL 0x00000004U /* linux */
384#define EVBACKEND_KQUEUE 0x00000008UL /* bsd */ 384#define EVBACKEND_KQUEUE 0x00000008U /* bsd */
385#define EVBACKEND_DEVPOLL 0x00000010UL /* solaris 8 */ /* NYI */ 385#define EVBACKEND_DEVPOLL 0x00000010U /* solaris 8 */ /* NYI */
386#define EVBACKEND_PORT 0x00000020UL /* solaris 10 */ 386#define EVBACKEND_PORT 0x00000020U /* solaris 10 */
387 387
388#if EV_PROTOTYPES 388#if EV_PROTOTYPES
389int ev_version_major (void); 389int ev_version_major (void);
390int ev_version_minor (void); 390int ev_version_minor (void);
391 391

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines