… | |
… | |
242 | |
242 | |
243 | for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) |
243 | for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) |
244 | newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); |
244 | newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); |
245 | |
245 | |
246 | stash_watcher = gv_stashpv ("EV::Watcher" , 1); |
246 | stash_watcher = gv_stashpv ("EV::Watcher" , 1); |
247 | stash_io = gv_stashpv ("EV::IO" , 1); |
247 | stash_io = gv_stashpv ("EV::Io" , 1); |
248 | stash_time = gv_stashpv ("EV::Time" , 1); |
248 | stash_time = gv_stashpv ("EV::Time" , 1); |
249 | stash_timer = gv_stashpv ("EV::Timer" , 1); |
249 | stash_timer = gv_stashpv ("EV::Timer" , 1); |
250 | stash_periodic = gv_stashpv ("EV::Periodic", 1); |
250 | stash_periodic = gv_stashpv ("EV::Periodic", 1); |
251 | stash_signal = gv_stashpv ("EV::Signal" , 1); |
251 | stash_signal = gv_stashpv ("EV::Signal" , 1); |
252 | stash_idle = gv_stashpv ("EV::Idle" , 1); |
252 | stash_idle = gv_stashpv ("EV::Idle" , 1); |
… | |
… | |
415 | sv_setsv (w->cb_sv, new_cb); |
415 | sv_setsv (w->cb_sv, new_cb); |
416 | } |
416 | } |
417 | OUTPUT: |
417 | OUTPUT: |
418 | RETVAL |
418 | RETVAL |
419 | |
419 | |
|
|
420 | void trigger (struct ev_watcher *w, int revents = EV_NONE) |
|
|
421 | CODE: |
|
|
422 | w->cb (w, revents); |
|
|
423 | |
420 | MODULE = EV PACKAGE = EV::IO PREFIX = evio_ |
424 | MODULE = EV PACKAGE = EV::Io PREFIX = evio_ |
421 | |
425 | |
422 | void evio_start (struct ev_io *w) |
426 | void evio_start (struct ev_io *w) |
423 | |
427 | |
424 | void evio_stop (struct ev_io *w) |
428 | void evio_stop (struct ev_io *w) |
425 | |
429 | |