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

Comparing libev/event.h (file contents):
Revision 1.4 by root, Fri Nov 2 13:08:51 2007 UTC vs.
Revision 1.6 by root, Sat Nov 3 19:41:56 2007 UTC

29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31#ifndef _EVENT_H_ 31#ifndef _EVENT_H_
32#define _EVENT_H_ 32#define _EVENT_H_
33 33
34#include "ev.h"
35
34#ifdef __cplusplus 36#ifdef __cplusplus
35extern "C" { 37extern "C" {
36#endif 38#endif
37 39
38#include "ev.h"
39
40struct event 40struct event
41{ 41{
42 /* lib watchers we map to */ 42 /* libev watchers we map onto */
43 union { 43 union {
44 struct ev_io io; 44 struct ev_io io;
45 struct ev_signal sig; 45 struct ev_signal sig;
46 } iosig; 46 } iosig;
47 struct ev_timer to; 47 struct ev_timer to;
117int event_base_loopexit (struct event_base *base, struct timeval *tv); 117int event_base_loopexit (struct event_base *base, struct timeval *tv);
118int event_base_dispatch (struct event_base *base); 118int event_base_dispatch (struct event_base *base);
119int event_base_once (struct event_base *base, int fd, short events, void (*cb)(int, short, void *), void *arg, struct timeval *tv); 119int event_base_once (struct event_base *base, int fd, short events, void (*cb)(int, short, void *), void *arg, struct timeval *tv);
120int event_base_priority_init (struct event_base *base, int fd); 120int event_base_priority_init (struct event_base *base, int fd);
121 121
122#ifndef EV_STANDALONE
123# include "event_compat.h"
122#endif 124#endif
125
126#ifdef __cplusplus
127}
128#endif
129
130#endif
131

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines