From a6dd9e8e7eb0d7734b0905a97f6e8b0087a2e09c Mon Sep 17 00:00:00 2001 From: Jacek Masiulaniec Date: Tue, 15 Sep 2009 18:12:51 +0000 Subject: Enclose repeated buffer draining code in a new msgbuf_drain() function, which is additionally exported for use by others. From nicm@, who reminded me that tmux is now using buffer.c, too. --- imsg.h | 1 + 1 file changed, 1 insertion(+) (limited to 'imsg.h') diff --git a/imsg.h b/imsg.h index 5de73f0c..b84be86f 100644 --- a/imsg.h +++ b/imsg.h @@ -90,6 +90,7 @@ void buf_free(struct buf *); void msgbuf_init(struct msgbuf *); void msgbuf_clear(struct msgbuf *); int msgbuf_write(struct msgbuf *); +void msgbuf_drain(struct msgbuf *, size_t); /* imsg.c */ void imsg_init(struct imsgbuf *, int); -- cgit