ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.pod
(Generate patch)

Comparing libev/ev.pod (file contents):
Revision 1.42 by root, Sat Nov 24 16:31:45 2007 UTC vs.
Revision 1.44 by root, Sat Nov 24 16:57:30 2007 UTC

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
1480F<ev.c> includes the backend files directly when enabled, so you only need 1480F<ev.c> includes the backend files directly when enabled, so you only need
1481to compile a single file. 1481to compile this single file.
1482 1482
1483=head3 LIBEVENT COMPATIBILITY API 1483=head3 LIBEVENT COMPATIBILITY API
1484 1484
1485To include the libevent compatibility API, also include: 1485To include the libevent compatibility API, also include:
1486 1486
1499 1499
1500=head3 AUTOCONF SUPPORT 1500=head3 AUTOCONF SUPPORT
1501 1501
1502Instead of using C<EV_STANDALONE=1> and providing your config in 1502Instead of using C<EV_STANDALONE=1> and providing your config in
1503whatever way you want, you can also C<m4_include([libev.m4])> in your 1503whatever way you want, you can also C<m4_include([libev.m4])> in your
1504F<configure.ac> and leave C<EV_STANDALONE> off. F<ev.c> will then include 1504F<configure.ac> and leave C<EV_STANDALONE> undefined. F<ev.c> will then
1505F<config.h> and configure itself accordingly. 1505include F<config.h> and configure itself accordingly.
1506 1506
1507For this of course you need the m4 file: 1507For 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
1665Can be used to change the callback member declaration in each watcher, 1665Can be used to change the callback member declaration in each watcher,
1666and the way callbacks are invoked and set. Must expand to a struct member 1666and the way callbacks are invoked and set. Must expand to a struct member
1667definition and a statement, respectively. See the F<ev.v> header file for 1667definition and a statement, respectively. See the F<ev.v> header file for
1668their default definitions. One possible use for overriding these is to 1668their default definitions. One possible use for overriding these is to
1669avoid the ev_loop pointer as first argument in all cases, or to use method 1669avoid the C<struct ev_loop *> as first argument in all cases, or to use
1670calls instead of plain function calls in C++. 1670method calls instead of plain function calls in C++.
1671 1671
1672=head2 EXAMPLES 1672=head2 EXAMPLES
1673 1673
1674For a real-world example of a program the includes libev 1674For a real-world example of a program the includes libev
1675verbatim, you can have a look at the EV perl module 1675verbatim, you can have a look at the EV perl module

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines