… | |
… | |
25 | |
25 | |
26 | ev.h |
26 | ev.h |
27 | ev.c |
27 | ev.c |
28 | ev_vars.h |
28 | ev_vars.h |
29 | ev_wrap.h |
29 | ev_wrap.h |
|
|
30 | ev_select.c only when select backend is enabled (which is by default) |
|
|
31 | ev_poll.c only when poll backend is enabled (disabled by default) |
|
|
32 | ev_epoll.c only when the epoll backend is enabled (disabled by default) |
|
|
33 | ev_kqueue.c only when the kqueue backend is enabled (disabled by default) |
|
|
34 | |
|
|
35 | "ev.c" includes the backend files directly when enabled. |
30 | |
36 | |
31 | To include the libevent compatibility API, also include: |
37 | To include the libevent compatibility API, also include: |
32 | |
38 | |
33 | #include "event.c" |
39 | #include "event.c" |
34 | |
40 | |
… | |
… | |
131 | event loop pointer argument. Instead, all functions act on the |
137 | event loop pointer argument. Instead, all functions act on the |
132 | single default loop. |
138 | single default loop. |
133 | |
139 | |
134 | EXAMPLES |
140 | EXAMPLES |
135 | |
141 | |
136 | For a real-world example of a program the includes libev verbatim, you |
142 | For a real-world example of a program the includes libev |
137 | can have a look at the EV perl module (http://software.schmorp.de/pkg/EV.html). |
143 | verbatim, you can have a look at the EV perl module |
138 | It has the libev files in the liev/ subdirectory and includes them in the |
144 | (http://software.schmorp.de/pkg/EV.html). It has the libev files in |
139 | EV.xs files. Only this file will be compiled. |
145 | the liev/ subdirectory and includes them in the EV/EVAPI.h (public |
|
|
146 | interface) and EV.xs (implementation) files. Only EV.xs file will be |
|
|
147 | compiled. |
140 | |
148 | |