diff options
author | Matt Johnston <matt@ucc.asn.au> | 2018-01-25 21:55:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-25 21:55:25 +0800 |
commit | e64e25e4d69ddb8f1c7fb8bbdcd09817cae4ca55 (patch) | |
tree | 679ecdd500c6355f7b11dbef36c66906065a8ee2 /circbuffer.h | |
parent | ba23b823dcec4203dcee59204f0a7dac1a390d96 (diff) | |
parent | 598056d1686127285c389cacbdd20707c350d05a (diff) |
Merge pull request #49 from fperrad/20170812_lint
Some linting, const parameters
Diffstat (limited to 'circbuffer.h')
-rw-r--r-- | circbuffer.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/circbuffer.h b/circbuffer.h index 744a2c1..5aaa762 100644 --- a/circbuffer.h +++ b/circbuffer.h @@ -38,12 +38,12 @@ typedef struct circbuf circbuffer; circbuffer * cbuf_new(unsigned int size); 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_writelen(circbuffer *cbuf); /* max linear write len */ +unsigned int cbuf_getused(const circbuffer * cbuf); /* how much data stored */ +unsigned int cbuf_getavail(const circbuffer * cbuf); /* how much we can write */ +unsigned int cbuf_writelen(const circbuffer *cbuf); /* max linear write len */ /* returns pointers to the two portions of the circular buffer that can be read */ -void cbuf_readptrs(circbuffer *cbuf, +void cbuf_readptrs(const circbuffer *cbuf, unsigned char **p1, unsigned int *len1, unsigned char **p2, unsigned int *len2); unsigned char* cbuf_writeptr(circbuffer *cbuf, unsigned int len); |