… | |
… | |
1775 | .Vb 3 |
1775 | .Vb 3 |
1776 | \& #define EV_COMMON \e |
1776 | \& #define EV_COMMON \e |
1777 | \& SV *self; /* contains this struct */ \e |
1777 | \& SV *self; /* contains this struct */ \e |
1778 | \& SV *cb_sv, *fh /* note no trailing ";" */ |
1778 | \& SV *cb_sv, *fh /* note no trailing ";" */ |
1779 | .Ve |
1779 | .Ve |
1780 | .IP "\s-1EV_CB_DECLARE\s0(type)" 4 |
1780 | .IP "\s-1EV_CB_DECLARE\s0 (type)" 4 |
1781 | .IX Item "EV_CB_DECLARE(type)" |
1781 | .IX Item "EV_CB_DECLARE (type)" |
1782 | .PD 0 |
1782 | .PD 0 |
1783 | .IP "\s-1EV_CB_INVOKE\s0(watcher,revents)" 4 |
1783 | .IP "\s-1EV_CB_INVOKE\s0 (watcher, revents)" 4 |
1784 | .IX Item "EV_CB_INVOKE(watcher,revents)" |
1784 | .IX Item "EV_CB_INVOKE (watcher, revents)" |
1785 | .IP "ev_set_cb(ev,cb)" 4 |
1785 | .IP "ev_set_cb (ev, cb)" 4 |
1786 | .IX Item "ev_set_cb(ev,cb)" |
1786 | .IX Item "ev_set_cb (ev, cb)" |
1787 | .PD |
1787 | .PD |
1788 | Can be used to change the callback member declaration in each watcher, |
1788 | Can be used to change the callback member declaration in each watcher, |
1789 | and the way callbacks are invoked and set. Must expand to a struct member |
1789 | and the way callbacks are invoked and set. Must expand to a struct member |
1790 | definition and a statement, respectively. See the \fIev.v\fR header file for |
1790 | definition and a statement, respectively. See the \fIev.v\fR header file for |
1791 | their default definitions. One possible use for overriding these is to |
1791 | their default definitions. One possible use for overriding these is to |
1792 | avoid the ev_loop pointer as first argument in all cases, or to use method |
1792 | avoid the \f(CW\*(C`struct ev_loop *\*(C'\fR as first argument in all cases, or to use |
1793 | calls instead of plain function calls in \*(C+. |
1793 | method calls instead of plain function calls in \*(C+. |
1794 | .Sh "\s-1EXAMPLES\s0" |
1794 | .Sh "\s-1EXAMPLES\s0" |
1795 | .IX Subsection "EXAMPLES" |
1795 | .IX Subsection "EXAMPLES" |
1796 | For a real-world example of a program the includes libev |
1796 | For a real-world example of a program the includes libev |
1797 | verbatim, you can have a look at the \s-1EV\s0 perl module |
1797 | verbatim, you can have a look at the \s-1EV\s0 perl module |
1798 | (<http://software.schmorp.de/pkg/EV.html>). It has the libev files in |
1798 | (<http://software.schmorp.de/pkg/EV.html>). It has the libev files in |