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

Comparing libev/ev.h (file contents):
Revision 1.172 by root, Fri Dec 27 06:01:22 2013 UTC vs.
Revision 1.177 by root, Tue Sep 9 13:34:46 2014 UTC

46# define EV_CPP(x) 46# define EV_CPP(x)
47#endif 47#endif
48 48
49#define EV_THROW EV_CPP(throw()) 49#define EV_THROW EV_CPP(throw())
50 50
51/* apple's proprietary clang fork errors out with exception specifications */
52/* in all sorts of places, so let's not even bother with them */
53/* users are strongly advised to install clang or gcc */
54#if __APPLE__ && __clang__
55# undef EV_THROW
56# define EV_THROW
57#endif
58
51EV_CPP(extern "C" {) 59EV_CPP(extern "C" {)
52 60
53/*****************************************************************************/ 61/*****************************************************************************/
54 62
55/* pre-4.0 compatibility */ 63/* pre-4.0 compatibility */
203#endif 211#endif
204 212
205/*****************************************************************************/ 213/*****************************************************************************/
206 214
207#define EV_VERSION_MAJOR 4 215#define EV_VERSION_MAJOR 4
208#define EV_VERSION_MINOR 15 216#define EV_VERSION_MINOR 18
209 217
210/* eventmask, revents, events... */ 218/* eventmask, revents, events... */
211enum { 219enum {
212 EV_UNDEF = (int)0xFFFFFFFF, /* guaranteed to be invalid */ 220 EV_UNDEF = (int)0xFFFFFFFF, /* guaranteed to be invalid */
213 EV_NONE = 0x00, /* no events */ 221 EV_NONE = 0x00, /* no events */
658/* advanced stuff for threading etc. support, see docs */ 666/* advanced stuff for threading etc. support, see docs */
659EV_API_DECL void ev_set_userdata (EV_P_ void *data) EV_THROW; 667EV_API_DECL void ev_set_userdata (EV_P_ void *data) EV_THROW;
660EV_API_DECL void *ev_userdata (EV_P) EV_THROW; 668EV_API_DECL void *ev_userdata (EV_P) EV_THROW;
661typedef void (*ev_loop_callback)(EV_P); 669typedef void (*ev_loop_callback)(EV_P);
662EV_API_DECL void ev_set_invoke_pending_cb (EV_P_ ev_loop_callback invoke_pending_cb) EV_THROW; 670EV_API_DECL void ev_set_invoke_pending_cb (EV_P_ ev_loop_callback invoke_pending_cb) EV_THROW;
663typedef void (*ev_loop_callback_nothrow)(EV_P) EV_THROW;
664EV_API_DECL void ev_set_loop_release_cb (EV_P_ ev_loop_callback_nothrow release, ev_loop_callback_nothrow acquire) EV_THROW; 671EV_API_DECL void ev_set_loop_release_cb (EV_P_ ev_loop_callback EV_THROW release, ev_loop_callback EV_THROW acquire) EV_THROW;
665 672
666EV_API_DECL unsigned int ev_pending_count (EV_P) EV_THROW; /* number of pending events, if any */ 673EV_API_DECL unsigned int ev_pending_count (EV_P) EV_THROW; /* number of pending events, if any */
667EV_API_DECL void ev_invoke_pending (EV_P); /* invoke all pending watchers */ 674EV_API_DECL void ev_invoke_pending (EV_P); /* invoke all pending watchers */
668 675
669/* 676/*

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines