diff options
author | Jacek Masiulaniec <jacekm@openbsd.org> | 2009-09-15 18:12:51 +0000 |
---|---|---|
committer | Jacek Masiulaniec <jacekm@openbsd.org> | 2009-09-15 18:12:51 +0000 |
commit | a6dd9e8e7eb0d7734b0905a97f6e8b0087a2e09c (patch) | |
tree | f61cb760bd6842b73988ebf8d92e3f535f318b8d /imsg.h | |
parent | 427819910184a7174391c2e688da6b89634045ec (diff) | |
download | rtmux-a6dd9e8e7eb0d7734b0905a97f6e8b0087a2e09c.tar.gz rtmux-a6dd9e8e7eb0d7734b0905a97f6e8b0087a2e09c.tar.bz2 rtmux-a6dd9e8e7eb0d7734b0905a97f6e8b0087a2e09c.zip |
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.
Diffstat (limited to 'imsg.h')
-rw-r--r-- | imsg.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |