summaryrefslogtreecommitdiffhomepage
path: root/circbuffer.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2015-03-01 00:44:45 +0800
committerMatt Johnston <matt@ucc.asn.au>2015-03-01 00:44:45 +0800
commit989c5c14361671ceaf3e78313a56d4260bcb49f9 (patch)
tree983e0c51342cf7c865f49544eb3fbced5f1fe88e /circbuffer.h
parent3113932151b7d2358565e41c3f81f230436126c9 (diff)
Avoid copying data into circular buffer
--HG-- branch : nocircbuffer
Diffstat (limited to 'circbuffer.h')
-rw-r--r--circbuffer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/circbuffer.h b/circbuffer.h
index 32ed13c..81bb91d 100644
--- a/circbuffer.h
+++ b/circbuffer.h
@@ -44,6 +44,9 @@ 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);
+void cbuf_readptrs(circbuffer *cbuf,
+ unsigned char **p1, unsigned int *len1,
+ unsigned char **p2, unsigned int *len2);
unsigned char* cbuf_writeptr(circbuffer *cbuf, unsigned int len);
void cbuf_incrwrite(circbuffer *cbuf, unsigned int len);
void cbuf_incrread(circbuffer *cbuf, unsigned int len);