X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fio%2Fio.h;h=cbd2b9be248b803daec99586001892e6e4e716c9;hp=fb6feb4d0b873e058800a634e7843d77ea1f7964;hb=109f8003b603675aec35e5b1fc678ee363e2f30c;hpb=a5af4b170139a6e6a0dae7535fb00278ed4639c6;ds=sidebyside diff --git a/ccan/io/io.h b/ccan/io/io.h index fb6feb4d..cbd2b9be 100644 --- a/ccan/io/io.h +++ b/ccan/io/io.h @@ -34,11 +34,6 @@ enum io_result { RESULT_CLOSE }; -enum io_state { - IO_IO, - IO_FINISHED -}; - /** * struct io_plan - returned from a setup function. * @@ -46,8 +41,9 @@ enum io_state { */ struct io_plan { int pollflag; - enum io_state state; + /* Only NULL if idle. */ enum io_result (*io)(struct io_conn *conn); + /* Only NULL if closing. */ struct io_plan (*next)(struct io_conn *, void *arg); void *next_arg;