daemon_conn: don't expose daemon_conn_write_next.

No external callers.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2018-10-24 12:10:31 +10:30
parent 689d51cba5
commit 88da956531
2 changed files with 2 additions and 11 deletions

View file

@ -13,7 +13,7 @@ struct io_plan *daemon_conn_read_next(struct io_conn *conn,
dc); dc);
} }
struct io_plan *daemon_conn_write_next(struct io_conn *conn, static struct io_plan *daemon_conn_write_next(struct io_conn *conn,
struct daemon_conn *dc) struct daemon_conn *dc)
{ {
const u8 *msg; const u8 *msg;

View file

@ -65,15 +65,6 @@ void daemon_conn_wake(struct daemon_conn *dc);
*/ */
void daemon_conn_send_fd(struct daemon_conn *dc, int fd); void daemon_conn_send_fd(struct daemon_conn *dc, int fd);
/**
* daemon_conn_write_next - Continue writing from the msg-queue
*
* Exposed here so that, if `msg_queue_cleared_cb` is used to break
* out of the write-loop, we can get back in.
*/
struct io_plan *daemon_conn_write_next(struct io_conn *conn,
struct daemon_conn *dc);
/** /**
* daemon_conn_read_next - Read the next message * daemon_conn_read_next - Read the next message
*/ */