… | |
… | |
170 | event loop pointer argument. Instead, all functions act on the |
170 | event loop pointer argument. Instead, all functions act on the |
171 | single default loop. |
171 | single default loop. |
172 | |
172 | |
173 | EV_CB_DECLARE(type) |
173 | EV_CB_DECLARE(type) |
174 | EV_CB_INVOKE(watcher,revents) |
174 | EV_CB_INVOKE(watcher,revents) |
|
|
175 | ev_set_cb(ev,cb) |
175 | |
176 | |
176 | Can be used to change the callback member declaration in each |
177 | Can be used to change the callback member declaration in each |
177 | watcher, and the way callbacks are invoked. Must expand to a struct |
178 | watcher, and the way callbacks are invoked and set. Must expand |
178 | member definition and a statement, respectively. See the ev.v |
179 | to a struct member definition and a statement, respectively. See |
179 | header file for their default definitions. One possible use for overriding |
180 | the ev.v header file for their default definitions. One possible |
180 | these is to avoid the ev_loop pointer as first argument in all cases, or |
181 | use for overriding these is to avoid the ev_loop pointer as first |
181 | to use method calls instead of plain function calls in C++. |
182 | argument in all cases, or to use method calls instead of plain |
|
|
183 | function calls in C++. |
182 | |
184 | |
183 | EXAMPLES |
185 | EXAMPLES |
184 | |
186 | |
185 | For a real-world example of a program the includes libev |
187 | For a real-world example of a program the includes libev |
186 | verbatim, you can have a look at the EV perl module |
188 | verbatim, you can have a look at the EV perl module |