… | |
… | |
1469 | ev_vars.h |
1469 | ev_vars.h |
1470 | ev_wrap.h |
1470 | ev_wrap.h |
1471 | |
1471 | |
1472 | ev_win32.c required on win32 platforms only |
1472 | ev_win32.c required on win32 platforms only |
1473 | |
1473 | |
1474 | ev_select.c only when select backend is enabled (which is is by default) |
1474 | ev_select.c only when select backend is enabled (which is by default) |
1475 | ev_poll.c only when poll backend is enabled (disabled by default) |
1475 | ev_poll.c only when poll backend is enabled (disabled by default) |
1476 | ev_epoll.c only when the epoll backend is enabled (disabled by default) |
1476 | ev_epoll.c only when the epoll backend is enabled (disabled by default) |
1477 | ev_kqueue.c only when the kqueue backend is enabled (disabled by default) |
1477 | ev_kqueue.c only when the kqueue backend is enabled (disabled by default) |
1478 | ev_port.c only when the solaris port backend is enabled (disabled by default) |
1478 | ev_port.c only when the solaris port backend is enabled (disabled by default) |
1479 | |
1479 | |
1480 | F<ev.c> includes the backend files directly when enabled, so you only need |
1480 | F<ev.c> includes the backend files directly when enabled, so you only need |
1481 | to compile a single file. |
1481 | to compile this single file. |
1482 | |
1482 | |
1483 | =head3 LIBEVENT COMPATIBILITY API |
1483 | =head3 LIBEVENT COMPATIBILITY API |
1484 | |
1484 | |
1485 | To include the libevent compatibility API, also include: |
1485 | To include the libevent compatibility API, also include: |
1486 | |
1486 | |
… | |
… | |
1499 | |
1499 | |
1500 | =head3 AUTOCONF SUPPORT |
1500 | =head3 AUTOCONF SUPPORT |
1501 | |
1501 | |
1502 | Instead of using C<EV_STANDALONE=1> and providing your config in |
1502 | Instead of using C<EV_STANDALONE=1> and providing your config in |
1503 | whatever way you want, you can also C<m4_include([libev.m4])> in your |
1503 | whatever way you want, you can also C<m4_include([libev.m4])> in your |
1504 | F<configure.ac> and leave C<EV_STANDALONE> off. F<ev.c> will then include |
1504 | F<configure.ac> and leave C<EV_STANDALONE> undefined. F<ev.c> will then |
1505 | F<config.h> and configure itself accordingly. |
1505 | include F<config.h> and configure itself accordingly. |
1506 | |
1506 | |
1507 | For this of course you need the m4 file: |
1507 | For this of course you need the m4 file: |
1508 | |
1508 | |
1509 | libev.m4 |
1509 | libev.m4 |
1510 | |
1510 | |
… | |
… | |
1654 | |
1654 | |
1655 | #define EV_COMMON \ |
1655 | #define EV_COMMON \ |
1656 | SV *self; /* contains this struct */ \ |
1656 | SV *self; /* contains this struct */ \ |
1657 | SV *cb_sv, *fh /* note no trailing ";" */ |
1657 | SV *cb_sv, *fh /* note no trailing ";" */ |
1658 | |
1658 | |
1659 | =item EV_CB_DECLARE(type) |
1659 | =item EV_CB_DECLARE (type) |
1660 | |
1660 | |
1661 | =item EV_CB_INVOKE(watcher,revents) |
1661 | =item EV_CB_INVOKE (watcher, revents) |
1662 | |
1662 | |
1663 | =item ev_set_cb(ev,cb) |
1663 | =item ev_set_cb (ev, cb) |
1664 | |
1664 | |
1665 | Can be used to change the callback member declaration in each watcher, |
1665 | Can be used to change the callback member declaration in each watcher, |
1666 | and the way callbacks are invoked and set. Must expand to a struct member |
1666 | and the way callbacks are invoked and set. Must expand to a struct member |
1667 | definition and a statement, respectively. See the F<ev.v> header file for |
1667 | definition and a statement, respectively. See the F<ev.v> header file for |
1668 | their default definitions. One possible use for overriding these is to |
1668 | their default definitions. One possible use for overriding these is to |
1669 | avoid the ev_loop pointer as first argument in all cases, or to use method |
1669 | avoid the C<struct ev_loop *> as first argument in all cases, or to use |
1670 | calls instead of plain function calls in C++. |
1670 | method calls instead of plain function calls in C++. |
1671 | |
1671 | |
1672 | =head2 EXAMPLES |
1672 | =head2 EXAMPLES |
1673 | |
1673 | |
1674 | For a real-world example of a program the includes libev |
1674 | For a real-world example of a program the includes libev |
1675 | verbatim, you can have a look at the EV perl module |
1675 | verbatim, you can have a look at the EV perl module |