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

Comparing libev/ev.h (file contents):
Revision 1.153 by root, Mon Oct 25 09:53:08 2010 UTC vs.
Revision 1.156 by root, Fri Nov 5 22:28:54 2010 UTC

191#endif 191#endif
192 192
193/*****************************************************************************/ 193/*****************************************************************************/
194 194
195#define EV_VERSION_MAJOR 4 195#define EV_VERSION_MAJOR 4
196#define EV_VERSION_MINOR 0 196#define EV_VERSION_MINOR 1
197 197
198/* eventmask, revents, events... */ 198/* eventmask, revents, events... */
199enum { 199enum {
200 EV_UNDEF = -1, /* guaranteed to be invalid */ 200 EV_UNDEF = 0xFFFFFFFF, /* guaranteed to be invalid */
201 EV_NONE = 0x00, /* no events */ 201 EV_NONE = 0x00, /* no events */
202 EV_READ = 0x01, /* ev_io detected read will not block */ 202 EV_READ = 0x01, /* ev_io detected read will not block */
203 EV_WRITE = 0x02, /* ev_io detected write will not block */ 203 EV_WRITE = 0x02, /* ev_io detected write will not block */
204 EV__IOFDSET = 0x80, /* internal use only */ 204 EV__IOFDSET = 0x80, /* internal use only */
205 EV_IO = EV_READ, /* alias for type-detection */ 205 EV_IO = EV_READ, /* alias for type-detection */
807 EV_INLINE void ev_loop (EV_P_ int flags) { ev_run (EV_A_ flags); } 807 EV_INLINE void ev_loop (EV_P_ int flags) { ev_run (EV_A_ flags); }
808 EV_INLINE void ev_unloop (EV_P_ int how ) { ev_break (EV_A_ how ); } 808 EV_INLINE void ev_unloop (EV_P_ int how ) { ev_break (EV_A_ how ); }
809 EV_INLINE void ev_default_destroy (void) { ev_loop_destroy (EV_DEFAULT); } 809 EV_INLINE void ev_default_destroy (void) { ev_loop_destroy (EV_DEFAULT); }
810 EV_INLINE void ev_default_fork (void) { ev_loop_fork (EV_DEFAULT); } 810 EV_INLINE void ev_default_fork (void) { ev_loop_fork (EV_DEFAULT); }
811 #if EV_FEATURE_API 811 #if EV_FEATURE_API
812 EV_INLINE void ev_loop_count (EV_P) { ev_iteration (EV_A); } 812 EV_INLINE unsigned int ev_loop_count (EV_P) { return ev_iteration (EV_A); }
813 EV_INLINE void ev_loop_depth (EV_P) { ev_depth (EV_A); } 813 EV_INLINE unsigned int ev_loop_depth (EV_P) { return ev_depth (EV_A); }
814 EV_INLINE void ev_loop_verify (EV_P) { ev_verify (EV_A); } 814 EV_INLINE void ev_loop_verify (EV_P) { ev_verify (EV_A); }
815 #endif 815 #endif
816 #endif 816 #endif
817#else 817#else
818 typedef struct ev_loop ev_loop; 818 typedef struct ev_loop ev_loop;
819#endif 819#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines