X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fio%2Fio.h;h=b7249e3a6b916a4ac966b77d81d00e244fd64319;hp=cbd2b9be248b803daec99586001892e6e4e716c9;hb=cef578da77d657701616161f3c3bf826186a024e;hpb=109f8003b603675aec35e5b1fc678ee363e2f30c;ds=sidebyside diff --git a/ccan/io/io.h b/ccan/io/io.h index cbd2b9be..b7249e3a 100644 --- a/ccan/io/io.h +++ b/ccan/io/io.h @@ -28,12 +28,6 @@ struct io_state_writepart { size_t *lenp; }; -enum io_result { - RESULT_AGAIN, - RESULT_FINISHED, - RESULT_CLOSE -}; - /** * struct io_plan - returned from a setup function. * @@ -42,7 +36,7 @@ enum io_result { struct io_plan { int pollflag; /* Only NULL if idle. */ - enum io_result (*io)(struct io_conn *conn); + bool (*io)(int fd, struct io_plan *plan); /* Only NULL if closing. */ struct io_plan (*next)(struct io_conn *, void *arg); void *next_arg;