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

Comparing libev/event.h (file contents):
Revision 1.13 by root, Thu Nov 8 21:14:36 2007 UTC vs.
Revision 1.14 by root, Fri Nov 9 17:07:59 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#ifdef EV_H
35# include EV_H
36#else
34#include <ev.h> 37# include <ev.h>
38#endif
35 39
36#ifdef __cplusplus 40#ifdef __cplusplus
37extern "C" { 41extern "C" {
38#endif 42#endif
43
44struct event_base;
39 45
40struct event 46struct event
41{ 47{
42 /* libev watchers we map onto */ 48 /* libev watchers we map onto */
43 union { 49 union {
109int event_pending (struct event *ev, short, struct timeval *tv); 115int event_pending (struct event *ev, short, struct timeval *tv);
110 116
111int event_priority_init (int npri); 117int event_priority_init (int npri);
112int event_priority_set (struct event *ev, int pri); 118int event_priority_set (struct event *ev, int pri);
113 119
114struct event_base;
115
116int event_base_set (struct event_base *base, struct event *ev); 120int event_base_set (struct event_base *base, struct event *ev);
117int event_base_loop (struct event_base *base, int); 121int event_base_loop (struct event_base *base, int);
118int event_base_loopexit (struct event_base *base, struct timeval *tv); 122int event_base_loopexit (struct event_base *base, struct timeval *tv);
119int event_base_dispatch (struct event_base *base); 123int event_base_dispatch (struct event_base *base);
120int event_base_once (struct event_base *base, int fd, short events, void (*cb)(int, short, void *), void *arg, struct timeval *tv); 124int event_base_once (struct event_base *base, int fd, short events, void (*cb)(int, short, void *), void *arg, struct timeval *tv);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines