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