]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/io.h
ccan/io: simplify I/O callbacks.
[ccan] / ccan / io / io.h
index 5820f87750059ebf3fd9a1bfaaac14a0bbc51df8..105a90825dcea8caf53cdb1ec1ce25890acdf53e 100644 (file)
@@ -16,7 +16,7 @@ struct io_conn;
 struct io_plan {
        int pollflag;
        /* Only NULL if idle. */
-       bool (*io)(int fd, struct io_plan *plan);
+       int (*io)(int fd, struct io_plan *plan);
        /* Only NULL if closing. */
        struct io_plan (*next)(struct io_conn *, void *arg);
        void *next_arg;