… | |
… | |
27 | |
27 | |
28 | struct EVAPI { |
28 | struct EVAPI { |
29 | I32 ver; |
29 | I32 ver; |
30 | I32 rev; |
30 | I32 rev; |
31 | #define EV_API_VERSION 1 |
31 | #define EV_API_VERSION 1 |
32 | #define EV_API_REVISION 0 |
32 | #define EV_API_REVISION 1 |
33 | |
33 | |
34 | /* perl fh or fd int to fd */ |
34 | /* perl fh or fd int to fd */ |
35 | int (*sv_fileno) (SV *fh); |
35 | int (*sv_fileno) (SV *fh); |
36 | /* signal number/name to signum */ |
36 | /* signal number/name to signum */ |
37 | int (*sv_signum) (SV *fh); |
37 | int (*sv_signum) (SV *fh); |
… | |
… | |
58 | void (*prepare_stop) (struct ev_prepare *); |
58 | void (*prepare_stop) (struct ev_prepare *); |
59 | void (*check_start)(struct ev_check *); |
59 | void (*check_start)(struct ev_check *); |
60 | void (*check_stop) (struct ev_check *); |
60 | void (*check_stop) (struct ev_check *); |
61 | void (*child_start)(struct ev_child *); |
61 | void (*child_start)(struct ev_child *); |
62 | void (*child_stop) (struct ev_child *); |
62 | void (*child_stop) (struct ev_child *); |
|
|
63 | void (*ref)(void); |
|
|
64 | void (*unref)(void); |
63 | }; |
65 | }; |
64 | |
66 | |
65 | #if !EV_PROTOTYPES |
67 | #if !EV_PROTOTYPES |
66 | # define sv_fileno(sv) GEVAPI->sv_fileno (sv) |
68 | # define sv_fileno(sv) GEVAPI->sv_fileno (sv) |
67 | # define sv_signum(sv) GEVAPI->sv_signum (sv) |
69 | # define sv_signum(sv) GEVAPI->sv_signum (sv) |
… | |
… | |
86 | # define ev_prepare_stop(w) GEVAPI->prepare_stop (w) |
88 | # define ev_prepare_stop(w) GEVAPI->prepare_stop (w) |
87 | # define ev_check_start(w) GEVAPI->check_start (w) |
89 | # define ev_check_start(w) GEVAPI->check_start (w) |
88 | # define ev_check_stop(w) GEVAPI->check_stop (w) |
90 | # define ev_check_stop(w) GEVAPI->check_stop (w) |
89 | # define ev_child_start(w) GEVAPI->child_start (w) |
91 | # define ev_child_start(w) GEVAPI->child_start (w) |
90 | # define ev_child_stop(w) GEVAPI->child_stop (w) |
92 | # define ev_child_stop(w) GEVAPI->child_stop (w) |
|
|
93 | # define ev_ref() GEVAPI->ref (w) |
|
|
94 | # define ev_unref() GEVAPI->unref (w) |
91 | #endif |
95 | #endif |
92 | |
96 | |
93 | static struct EVAPI *GEVAPI; |
97 | static struct EVAPI *GEVAPI; |
94 | |
98 | |
95 | #define I_EV_API(YourName) \ |
99 | #define I_EV_API(YourName) \ |