X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fio%2Fio.c;h=36dcb81e720f448bf46665f93bb40f0692d2256c;hp=7ebd5a202d7899f356ed1963eb3c6f463ee986e2;hb=580457bd3e4af60d5367412589d2aa1bb0289eed;hpb=0fa318d0eeccbb4d33310f048653fa212c12d86d diff --git a/ccan/io/io.c b/ccan/io/io.c index 7ebd5a20..36dcb81e 100644 --- a/ccan/io/io.c +++ b/ccan/io/io.c @@ -119,6 +119,16 @@ struct io_conn *io_new_conn_(const tal_t *ctx, int fd, return conn; } +bool io_conn_exclusive(struct io_conn *conn, bool exclusive) +{ + return backend_set_exclusive(&conn->plan[IO_IN], exclusive); +} + +bool io_conn_out_exclusive(struct io_conn *conn, bool exclusive) +{ + return backend_set_exclusive(&conn->plan[IO_OUT], exclusive); +} + void io_set_finish_(struct io_conn *conn, void (*finish)(struct io_conn *, void *), void *arg)