summaryrefslogtreecommitdiff
path: root/src/mbuf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbuf.h')
-rw-r--r--src/mbuf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mbuf.h b/src/mbuf.h
index f1464c7..458b52a 100644
--- a/src/mbuf.h
+++ b/src/mbuf.h
@@ -84,4 +84,9 @@ int mbuf_push(struct mbuf *mbuf, const void *buf, size_t size, bool erase);
*/
int mbuf_pop(struct mbuf *mbuf, void *buf, size_t *sizep);
+/*
+ * Get the number of availabe bytes in a message buffer.
+ */
+size_t mbuf_avail_size(const struct mbuf *mbuf);
+
#endif /* MBUF_H */