aboutsummaryrefslogtreecommitdiff
path: root/imsg.h
diff options
context:
space:
mode:
authorJacek Masiulaniec <jacekm@openbsd.org>2009-09-15 18:12:51 +0000
committerJacek Masiulaniec <jacekm@openbsd.org>2009-09-15 18:12:51 +0000
commita6dd9e8e7eb0d7734b0905a97f6e8b0087a2e09c (patch)
treef61cb760bd6842b73988ebf8d92e3f535f318b8d /imsg.h
parent427819910184a7174391c2e688da6b89634045ec (diff)
downloadrtmux-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.h1
1 files changed, 1 insertions, 0 deletions
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);