… | |
… | |
23 | #include <ev.h> |
23 | #include <ev.h> |
24 | |
24 | |
25 | struct EVAPI { |
25 | struct EVAPI { |
26 | I32 ver; |
26 | I32 ver; |
27 | I32 rev; |
27 | I32 rev; |
28 | #define EV_API_VERSION 2 |
28 | #define EV_API_VERSION 1 |
29 | #define EV_API_REVISION 0 |
29 | #define EV_API_REVISION 0 |
30 | |
30 | |
31 | /* perl fh or fd int to fd */ |
31 | /* perl fh or fd int to fd */ |
32 | int (*sv_fileno) (SV *fh); |
32 | int (*sv_fileno) (SV *fh); |
33 | /* signal number/name to signum */ |
33 | /* signal number/name to signum */ |
… | |
… | |
51 | void (*periodic_stop) (struct ev_periodic *); |
51 | void (*periodic_stop) (struct ev_periodic *); |
52 | void (*signal_start)(struct ev_signal *); |
52 | void (*signal_start)(struct ev_signal *); |
53 | void (*signal_stop) (struct ev_signal *); |
53 | void (*signal_stop) (struct ev_signal *); |
54 | void (*idle_start)(struct ev_idle *); |
54 | void (*idle_start)(struct ev_idle *); |
55 | void (*idle_stop) (struct ev_idle *); |
55 | void (*idle_stop) (struct ev_idle *); |
|
|
56 | void (*prepare_start)(struct ev_prepare *); |
|
|
57 | void (*prepare_stop) (struct ev_prepare *); |
56 | void (*check_start)(struct ev_check *); |
58 | void (*check_start)(struct ev_check *); |
57 | void (*check_stop) (struct ev_check *); |
59 | void (*check_stop) (struct ev_check *); |
58 | }; |
60 | }; |
59 | |
61 | |
60 | #if !EV_PROTOTYPES |
62 | #if !EV_PROTOTYPES |
… | |
… | |
75 | # define evperiodic_stop(w) GEVAPI->periodic_stop (w) |
77 | # define evperiodic_stop(w) GEVAPI->periodic_stop (w) |
76 | # define evsignal_start(w) GEVAPI->signal_start (w) |
78 | # define evsignal_start(w) GEVAPI->signal_start (w) |
77 | # define evsignal_stop(w) GEVAPI->signal_stop (w) |
79 | # define evsignal_stop(w) GEVAPI->signal_stop (w) |
78 | # define evidle_start(w) GEVAPI->idle_start (w) |
80 | # define evidle_start(w) GEVAPI->idle_start (w) |
79 | # define evidle_stop(w) GEVAPI->idle_stop (w) |
81 | # define evidle_stop(w) GEVAPI->idle_stop (w) |
|
|
82 | # define evprepare_start(w) GEVAPI->prepare_start (w) |
|
|
83 | # define evprepare_stop(w) GEVAPI->prepare_stop (w) |
80 | # define evcheck_start(w) GEVAPI->check_start (w) |
84 | # define evcheck_start(w) GEVAPI->check_start (w) |
81 | # define evcheck_stop(w) GEVAPI->check_stop (w) |
85 | # define evcheck_stop(w) GEVAPI->check_stop (w) |
82 | #endif |
86 | #endif |
83 | |
87 | |
84 | static struct EVAPI *GEVAPI; |
88 | static struct EVAPI *GEVAPI; |