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

Comparing EV/EV/EVAPI.h (file contents):
Revision 1.31 by root, Sat Dec 8 14:12:06 2007 UTC vs.
Revision 1.32 by root, Sun Dec 9 19:46:55 2007 UTC

27#include <ev.h> 27#include <ev.h>
28 28
29struct EVAPI { 29struct EVAPI {
30 I32 ver; 30 I32 ver;
31 I32 rev; 31 I32 rev;
32#define EV_API_VERSION 2 32#define EV_API_VERSION 3
33#define EV_API_REVISION 1 33#define EV_API_REVISION 0
34 34
35 /* perl fh or fd int to fd */ 35 /* perl fh or fd int to fd */
36 int (*sv_fileno) (SV *fh); 36 int (*sv_fileno) (SV *fh);
37 /* signal number/name to signum */ 37 /* signal number/name to signum */
38 int (*sv_signum) (SV *fh); 38 int (*sv_signum) (SV *fh);
44 void (*loop)(EV_P_ int flags); 44 void (*loop)(EV_P_ int flags);
45 void (*unloop)(EV_P_ int how); 45 void (*unloop)(EV_P_ int how);
46 void (*ref)(EV_P); 46 void (*ref)(EV_P);
47 void (*unref)(EV_P); 47 void (*unref)(EV_P);
48 void (*once)(EV_P_ int fd, int events, ev_tstamp timeout, void (*cb)(int revents, void *arg), void *arg); 48 void (*once)(EV_P_ int fd, int events, ev_tstamp timeout, void (*cb)(int revents, void *arg), void *arg);
49 int (*clear_pending)(EV_P_ void *);
50 void (*invoke)(EV_P_ void *, int);
49 void (*io_start)(EV_P_ ev_io *); 51 void (*io_start)(EV_P_ ev_io *);
50 void (*io_stop) (EV_P_ ev_io *); 52 void (*io_stop) (EV_P_ ev_io *);
51 void (*timer_start)(EV_P_ ev_timer *); 53 void (*timer_start)(EV_P_ ev_timer *);
52 void (*timer_stop) (EV_P_ ev_timer *); 54 void (*timer_stop) (EV_P_ ev_timer *);
53 void (*timer_again)(EV_P_ ev_timer *); 55 void (*timer_again)(EV_P_ ev_timer *);
64 void (*idle_stop) (EV_P_ ev_idle *); 66 void (*idle_stop) (EV_P_ ev_idle *);
65 void (*prepare_start)(EV_P_ ev_prepare *); 67 void (*prepare_start)(EV_P_ ev_prepare *);
66 void (*prepare_stop) (EV_P_ ev_prepare *); 68 void (*prepare_stop) (EV_P_ ev_prepare *);
67 void (*check_start)(EV_P_ ev_check *); 69 void (*check_start)(EV_P_ ev_check *);
68 void (*check_stop) (EV_P_ ev_check *); 70 void (*check_stop) (EV_P_ ev_check *);
69 int (*clear_pending)(EV_P_ void *);
70 void (*invoke)(EV_P_ void *, int);
71}; 71};
72 72
73#if !EV_PROTOTYPES 73#if !EV_PROTOTYPES
74# define sv_fileno(sv) GEVAPI->sv_fileno (sv) 74# define sv_fileno(sv) GEVAPI->sv_fileno (sv)
75# define sv_signum(sv) GEVAPI->sv_signum (sv) 75# define sv_signum(sv) GEVAPI->sv_signum (sv)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines