X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fio%2Fio.c;h=36dcb81e720f448bf46665f93bb40f0692d2256c;hb=b15b3673bf0fbbff48b87bddcf402b8bcdf41c59;hp=7ebd5a202d7899f356ed1963eb3c6f463ee986e2;hpb=a5881c0deb210f56c2095366ae6cdabd5230d68d;p=ccan 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)