… | |
… | |
4 | <head> |
4 | <head> |
5 | <title>libev</title> |
5 | <title>libev</title> |
6 | <meta name="description" content="Pod documentation for libev" /> |
6 | <meta name="description" content="Pod documentation for libev" /> |
7 | <meta name="inputfile" content="<standard input>" /> |
7 | <meta name="inputfile" content="<standard input>" /> |
8 | <meta name="outputfile" content="<standard output>" /> |
8 | <meta name="outputfile" content="<standard output>" /> |
9 | <meta name="created" content="Sat Nov 24 17:31:33 2007" /> |
9 | <meta name="created" content="Sat Nov 24 17:57:37 2007" /> |
10 | <meta name="generator" content="Pod::Xhtml 1.57" /> |
10 | <meta name="generator" content="Pod::Xhtml 1.57" /> |
11 | <link rel="stylesheet" href="http://res.tst.eu/pod.css"/></head> |
11 | <link rel="stylesheet" href="http://res.tst.eu/pod.css"/></head> |
12 | <body> |
12 | <body> |
13 | <div class="pod"> |
13 | <div class="pod"> |
14 | <!-- INDEX START --> |
14 | <!-- INDEX START --> |
… | |
… | |
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 | </pre> |
1480 | </pre> |
1481 | <p><cite>ev.c</cite> includes the backend files directly when enabled, so you only need |
1481 | <p><cite>ev.c</cite> includes the backend files directly when enabled, so you only need |
1482 | to compile a single file.</p> |
1482 | to compile this single file.</p> |
1483 | |
1483 | |
1484 | </div> |
1484 | </div> |
1485 | <h3 id="LIBEVENT_COMPATIBILITY_API">LIBEVENT COMPATIBILITY API</h3> |
1485 | <h3 id="LIBEVENT_COMPATIBILITY_API">LIBEVENT COMPATIBILITY API</h3> |
1486 | <div id="LIBEVENT_COMPATIBILITY_API_CONTENT"> |
1486 | <div id="LIBEVENT_COMPATIBILITY_API_CONTENT"> |
1487 | <p>To include the libevent compatibility API, also include:</p> |
1487 | <p>To include the libevent compatibility API, also include:</p> |
… | |
… | |
1502 | </div> |
1502 | </div> |
1503 | <h3 id="AUTOCONF_SUPPORT">AUTOCONF SUPPORT</h3> |
1503 | <h3 id="AUTOCONF_SUPPORT">AUTOCONF SUPPORT</h3> |
1504 | <div id="AUTOCONF_SUPPORT_CONTENT"> |
1504 | <div id="AUTOCONF_SUPPORT_CONTENT"> |
1505 | <p>Instead of using <code>EV_STANDALONE=1</code> and providing your config in |
1505 | <p>Instead of using <code>EV_STANDALONE=1</code> and providing your config in |
1506 | whatever way you want, you can also <code>m4_include([libev.m4])</code> in your |
1506 | whatever way you want, you can also <code>m4_include([libev.m4])</code> in your |
1507 | <cite>configure.ac</cite> and leave <code>EV_STANDALONE</code> off. <cite>ev.c</cite> will then include |
1507 | <cite>configure.ac</cite> and leave <code>EV_STANDALONE</code> undefined. <cite>ev.c</cite> will then |
1508 | <cite>config.h</cite> and configure itself accordingly.</p> |
1508 | include <cite>config.h</cite> and configure itself accordingly.</p> |
1509 | <p>For this of course you need the m4 file:</p> |
1509 | <p>For this of course you need the m4 file:</p> |
1510 | <pre> libev.m4 |
1510 | <pre> libev.m4 |
1511 | |
1511 | |
1512 | </pre> |
1512 | </pre> |
1513 | |
1513 | |
… | |
… | |
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 | </pre> |
1659 | </pre> |
1660 | </dd> |
1660 | </dd> |
1661 | <dt>EV_CB_DECLARE(type)</dt> |
1661 | <dt>EV_CB_DECLARE (type)</dt> |
1662 | <dt>EV_CB_INVOKE(watcher,revents)</dt> |
1662 | <dt>EV_CB_INVOKE (watcher, revents)</dt> |
1663 | <dt>ev_set_cb(ev,cb)</dt> |
1663 | <dt>ev_set_cb (ev, cb)</dt> |
1664 | <dd> |
1664 | <dd> |
1665 | <p>Can be used to change the callback member declaration in each watcher, |
1665 | <p>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 <cite>ev.v</cite> header file for |
1667 | definition and a statement, respectively. See the <cite>ev.v</cite> 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 <code>struct ev_loop *</code> as first argument in all cases, or to use |
1670 | calls instead of plain function calls in C++.</p> |
1670 | method calls instead of plain function calls in C++.</p> |
1671 | |
1671 | |
1672 | </div> |
1672 | </div> |
1673 | <h2 id="EXAMPLES">EXAMPLES</h2> |
1673 | <h2 id="EXAMPLES">EXAMPLES</h2> |
1674 | <div id="EXAMPLES_CONTENT"> |
1674 | <div id="EXAMPLES_CONTENT"> |
1675 | <p>For a real-world example of a program the includes libev |
1675 | <p>For a real-world example of a program the includes libev |