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

Comparing EV/EV.xs (file contents):
Revision 1.87 by root, Fri Dec 7 18:09:38 2007 UTC vs.
Revision 1.90 by root, Mon Dec 17 07:24:12 2007 UTC

403 evapi.child_start = ev_child_start; 403 evapi.child_start = ev_child_start;
404 evapi.child_stop = ev_child_stop; 404 evapi.child_stop = ev_child_stop;
405 evapi.stat_start = ev_stat_start; 405 evapi.stat_start = ev_stat_start;
406 evapi.stat_stop = ev_stat_stop; 406 evapi.stat_stop = ev_stat_stop;
407 evapi.stat_stat = ev_stat_stat; 407 evapi.stat_stat = ev_stat_stat;
408 evapi.clear_pending = ev_clear_pending;
409 evapi.invoke = ev_invoke;
408 410
409 sv_setiv (sv, (IV)&evapi); 411 sv_setiv (sv, (IV)&evapi);
410 SvREADONLY_on (sv); 412 SvREADONLY_on (sv);
411 } 413 }
412#ifndef _WIN32 414#ifndef _WIN32
426 428
427void ev_loop (int flags = 0) 429void ev_loop (int flags = 0)
428 430
429void ev_unloop (int how = 1) 431void ev_unloop (int how = 1)
430 432
433void ev_feed_fd_event (int fd, int revents = EV_NONE)
434
435void ev_feed_signal_event (SV *signal)
436 CODE:
437{
438 Signal signum = sv_signum (signal);
439 CHECK_SIG (signal, signum);
440
441 ev_feed_signal_event (EV_DEFAULT_ signum);
442}
443
431ev_io *io (SV *fh, int events, SV *cb) 444ev_io *io (SV *fh, int events, SV *cb)
432 ALIAS: 445 ALIAS:
433 io_ns = 1 446 io_ns = 1
434 CODE: 447 CODE:
435{ 448{
554 567
555int ev_is_active (ev_watcher *w) 568int ev_is_active (ev_watcher *w)
556 569
557int ev_is_pending (ev_watcher *w) 570int ev_is_pending (ev_watcher *w)
558 571
572void ev_invoke (ev_watcher *w, int revents = EV_NONE)
573
574int ev_clear_pending (ev_watcher *w)
575
576void ev_feed_event (ev_watcher *w, int revents = EV_NONE)
577
559int keepalive (ev_watcher *w, int new_value = 0) 578int keepalive (ev_watcher *w, int new_value = 0)
560 CODE: 579 CODE:
561{ 580{
562 RETVAL = w->flags & WFLAG_KEEPALIVE; 581 RETVAL = w->flags & WFLAG_KEEPALIVE;
563 new_value = new_value ? WFLAG_KEEPALIVE : 0; 582 new_value = new_value ? WFLAG_KEEPALIVE : 0;
594 w->data = newSVsv (new_data); 613 w->data = newSVsv (new_data);
595 } 614 }
596} 615}
597 OUTPUT: 616 OUTPUT:
598 RETVAL 617 RETVAL
599
600void trigger (ev_watcher *w, int revents = EV_NONE)
601 CODE:
602 w->cb (w, revents);
603 618
604int priority (ev_watcher *w, int new_priority = 0) 619int priority (ev_watcher *w, int new_priority = 0)
605 CODE: 620 CODE:
606{ 621{
607 RETVAL = w->priority; 622 RETVAL = w->priority;
757 INIT: 772 INIT:
758 CHECK_REPEAT (repeat); 773 CHECK_REPEAT (repeat);
759 CODE: 774 CODE:
760 RESET (timer, w, (w, after, repeat)); 775 RESET (timer, w, (w, after, repeat));
761 776
777NV at (ev_timer *w)
778 CODE:
779 RETVAL = w->at;
780 OUTPUT:
781 RETVAL
782
762MODULE = EV PACKAGE = EV::Periodic PREFIX = ev_periodic_ 783MODULE = EV PACKAGE = EV::Periodic PREFIX = ev_periodic_
763 784
764void ev_periodic_start (ev_periodic *w) 785void ev_periodic_start (ev_periodic *w)
765 INIT: 786 INIT:
766 CHECK_REPEAT (w->interval); 787 CHECK_REPEAT (w->interval);
790 SvREFCNT_dec (w->fh); 811 SvREFCNT_dec (w->fh);
791 w->fh = SvTRUE (reschedule_cb) ? newSVsv (reschedule_cb) : 0; 812 w->fh = SvTRUE (reschedule_cb) ? newSVsv (reschedule_cb) : 0;
792 813
793 RESET (periodic, w, (w, at, interval, w->fh ? e_periodic_cb : 0)); 814 RESET (periodic, w, (w, at, interval, w->fh ? e_periodic_cb : 0));
794} 815}
816
817NV at (ev_periodic *w)
818 CODE:
819 RETVAL = w->at;
820 OUTPUT:
821 RETVAL
795 822
796MODULE = EV PACKAGE = EV::Idle PREFIX = ev_idle_ 823MODULE = EV PACKAGE = EV::Idle PREFIX = ev_idle_
797 824
798void ev_idle_start (ev_idle *w) 825void ev_idle_start (ev_idle *w)
799 CODE: 826 CODE:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines