--- libev/ev.pod 2007/12/08 14:12:08 1.74 +++ libev/ev.pod 2007/12/08 14:27:39 1.75 @@ -1846,14 +1846,21 @@ ev::io iow; iow.set (&obj); -=item w->set (void (*function)(watcher &w, int), void *data = 0) +=item w->set (void *data = 0) Also sets a callback, but uses a static method or plain function as callback. The optional C argument will be stored in the watcher's C member and is free for you to use. +The prototype of the C must be C. + See the method-C above for more details. +Example: + + static void io_cb (ev::io &w, int revents) { } + iow.set (); + =item w->set (struct ev_loop *) Associates a different C with this watcher. You can only