summaryrefslogtreecommitdiffhomepage
path: root/circbuffer.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2015-05-02 22:47:25 +0800
committerMatt Johnston <matt@ucc.asn.au>2015-05-02 22:47:25 +0800
commit19e1afbd1ca6d306166ce74bcd6c6889f8d196f3 (patch)
tree682e347d7cd5cee4c388743781cd723fce0598a2 /circbuffer.h
parentfee32054e68324f8c2e13858f21e2ac406190734 (diff)
Fix no-writev fallback
Diffstat (limited to 'circbuffer.h')
-rw-r--r--circbuffer.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/circbuffer.h b/circbuffer.h
index 81bb91d..744a2c1 100644
--- a/circbuffer.h
+++ b/circbuffer.h
@@ -40,10 +40,9 @@ void cbuf_free(circbuffer * cbuf);
unsigned int cbuf_getused(circbuffer * cbuf); /* how much data stored */
unsigned int cbuf_getavail(circbuffer * cbuf); /* how much we can write */
-unsigned int cbuf_readlen(circbuffer *cbuf); /* max linear read len */
unsigned int cbuf_writelen(circbuffer *cbuf); /* max linear write len */
-unsigned char* cbuf_readptr(circbuffer *cbuf, unsigned int len);
+/* returns pointers to the two portions of the circular buffer that can be read */
void cbuf_readptrs(circbuffer *cbuf,
unsigned char **p1, unsigned int *len1,
unsigned char **p2, unsigned int *len2);