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

Comparing EV/EV.xs (file contents):
Revision 1.26 by root, Wed Oct 31 21:34:45 2007 UTC vs.
Revision 1.28 by root, Wed Oct 31 21:50:15 2007 UTC

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
420void trigger (struct ev_watcher *w, int revents = EV_NONE)
421 CODE:
422 w->cb (w, revents);
423
420MODULE = EV PACKAGE = EV::IO PREFIX = evio_ 424MODULE = EV PACKAGE = EV::Io PREFIX = evio_
421 425
422void evio_start (struct ev_io *w) 426void evio_start (struct ev_io *w)
423 427
424void evio_stop (struct ev_io *w) 428void evio_stop (struct ev_io *w)
425 429
565 569
566void evprepare_stop (struct ev_prepare *w) 570void evprepare_stop (struct ev_prepare *w)
567 571
568void DESTROY (struct ev_prepare *w) 572void DESTROY (struct ev_prepare *w)
569 CODE: 573 CODE:
570 evidle_prepare (w); 574 evprepare_stop (w);
571 575
572MODULE = EV PACKAGE = EV::Check PREFIX = evcheck_ 576MODULE = EV PACKAGE = EV::Check PREFIX = evcheck_
573 577
574void evcheck_start (struct ev_check *w) 578void evcheck_start (struct ev_check *w)
575 579
576void evcheck_stop (struct ev_check *w) 580void evcheck_stop (struct ev_check *w)
577 581
578void DESTROY (struct ev_check *w) 582void DESTROY (struct ev_check *w)
579 CODE: 583 CODE:
580 evidle_check (w); 584 evcheck_stop (w);
581 585
582MODULE = EV PACKAGE = EV::Child PREFIX = evchild_ 586MODULE = EV PACKAGE = EV::Child PREFIX = evchild_
583 587
584void evchild_start (struct ev_child *w) 588void evchild_start (struct ev_child *w)
585 589
586void evchild_stop (struct ev_child *w) 590void evchild_stop (struct ev_child *w)
587 591
588void DESTROY (struct ev_child *w) 592void DESTROY (struct ev_child *w)
589 CODE: 593 CODE:
590 evidle_child (w); 594 evchild_stop (w);
591 595
592void set (struct ev_child *w, int pid) 596void set (struct ev_child *w, int pid)
593 CODE: 597 CODE:
594{ 598{
595 int active = w->active; 599 int active = w->active;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines