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

Comparing libev/ev.h (file contents):
Revision 1.163 by root, Fri Feb 3 21:08:39 2012 UTC vs.
Revision 1.165 by root, Mon Apr 2 23:14:41 2012 UTC

1/* 1/*
2 * libev native API header 2 * libev native API header
3 * 3 *
4 * Copyright (c) 2007,2008,2009,2010,2011 Marc Alexander Lehmann <libev@schmorp.de> 4 * Copyright (c) 2007,2008,2009,2010,2011,2012 Marc Alexander Lehmann <libev@schmorp.de>
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without modifica- 7 * Redistribution and use in source and binary forms, with or without modifica-
8 * tion, are permitted provided that the following conditions are met: 8 * tion, are permitted provided that the following conditions are met:
9 * 9 *
197#endif 197#endif
198 198
199/*****************************************************************************/ 199/*****************************************************************************/
200 200
201#define EV_VERSION_MAJOR 4 201#define EV_VERSION_MAJOR 4
202#define EV_VERSION_MINOR 4 202#define EV_VERSION_MINOR 11
203 203
204/* eventmask, revents, events... */ 204/* eventmask, revents, events... */
205enum { 205enum {
206 EV_UNDEF = 0xFFFFFFFF, /* guaranteed to be invalid */ 206 EV_UNDEF = 0xFFFFFFFF, /* guaranteed to be invalid */
207 EV_NONE = 0x00, /* no events */ 207 EV_NONE = 0x00, /* no events */
622 EVBREAK_ONE = 1, /* unloop once */ 622 EVBREAK_ONE = 1, /* unloop once */
623 EVBREAK_ALL = 2 /* unloop all loops */ 623 EVBREAK_ALL = 2 /* unloop all loops */
624}; 624};
625 625
626#if EV_PROTOTYPES 626#if EV_PROTOTYPES
627EV_API_DECL void ev_run (EV_P_ int flags EV_CPP (= 0)); 627EV_API_DECL int ev_run (EV_P_ int flags EV_CPP (= 0));
628EV_API_DECL void ev_break (EV_P_ int how EV_CPP (= EVBREAK_ONE)); /* break out of the loop */ 628EV_API_DECL void ev_break (EV_P_ int how EV_CPP (= EVBREAK_ONE)); /* break out of the loop */
629 629
630/* 630/*
631 * ref/unref can be used to add or remove a refcount on the mainloop. every watcher 631 * ref/unref can be used to add or remove a refcount on the mainloop. every watcher
632 * keeps one reference. if you have a long-running watcher you never unregister that 632 * keeps one reference. if you have a long-running watcher you never unregister that

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines