… | |
… | |
3 | #include "XSUB.h" |
3 | #include "XSUB.h" |
4 | |
4 | |
5 | /*#include <netinet/in.h>*/ |
5 | /*#include <netinet/in.h>*/ |
6 | |
6 | |
7 | #define TIMEOUT_NONE HUGE_VAL |
7 | #define TIMEOUT_NONE HUGE_VAL |
8 | #define HAVE_EPOLL 1 |
8 | #define EV_USE_EPOLL 1 |
9 | |
9 | |
10 | #define EV_PROTOTYPES 1 |
10 | #define EV_PROTOTYPES 1 |
11 | #include "EV/EVAPI.h" |
11 | #include "EV/EVAPI.h" |
12 | |
12 | |
13 | #include "libev/ev.c" |
13 | #include "libev/ev.c" |
… | |
… | |
17 | static struct EVAPI evapi; |
17 | static struct EVAPI evapi; |
18 | |
18 | |
19 | static HV |
19 | static HV |
20 | *stash_watcher, |
20 | *stash_watcher, |
21 | *stash_io, |
21 | *stash_io, |
22 | *stash_time, |
|
|
23 | *stash_timer, |
22 | *stash_timer, |
24 | *stash_periodic, |
23 | *stash_periodic, |
25 | *stash_signal, |
24 | *stash_signal, |
26 | *stash_idle, |
25 | *stash_idle, |
27 | *stash_prepare, |
26 | *stash_prepare, |
… | |
… | |
243 | for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) |
242 | for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) |
244 | newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); |
243 | newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); |
245 | |
244 | |
246 | stash_watcher = gv_stashpv ("EV::Watcher" , 1); |
245 | stash_watcher = gv_stashpv ("EV::Watcher" , 1); |
247 | stash_io = gv_stashpv ("EV::Io" , 1); |
246 | stash_io = gv_stashpv ("EV::Io" , 1); |
248 | stash_time = gv_stashpv ("EV::Time" , 1); |
|
|
249 | stash_timer = gv_stashpv ("EV::Timer" , 1); |
247 | stash_timer = gv_stashpv ("EV::Timer" , 1); |
250 | stash_periodic = gv_stashpv ("EV::Periodic", 1); |
248 | stash_periodic = gv_stashpv ("EV::Periodic", 1); |
251 | stash_signal = gv_stashpv ("EV::Signal" , 1); |
249 | stash_signal = gv_stashpv ("EV::Signal" , 1); |
252 | stash_idle = gv_stashpv ("EV::Idle" , 1); |
250 | stash_idle = gv_stashpv ("EV::Idle" , 1); |
253 | stash_prepare = gv_stashpv ("EV::Prepare" , 1); |
251 | stash_prepare = gv_stashpv ("EV::Prepare" , 1); |