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