diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-02-25 02:10:45 +0100 |
---|---|---|
committer | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2011-03-28 14:40:59 +0530 |
commit | c524b4c5b59a11c0a85d27d64dfb607246abc141 (patch) | |
tree | c01814bbdaf1bff369f9689d268c010320cd8ec5 /src/pulsecore/memblockq.h | |
parent | 9f52c1064651667f48877f54ae002e97eecd6289 (diff) |
memblockq: implement new call pa_memblockq_peek_fixed_size()
Diffstat (limited to 'src/pulsecore/memblockq.h')
-rw-r--r-- | src/pulsecore/memblockq.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pulsecore/memblockq.h b/src/pulsecore/memblockq.h index 6132f31b..3775c3f3 100644 --- a/src/pulsecore/memblockq.h +++ b/src/pulsecore/memblockq.h @@ -95,6 +95,11 @@ void pa_memblockq_seek(pa_memblockq *bq, int64_t offset, pa_seek_mode_t seek, pa * was passed we return the length of the hole in chunk->length. */ int pa_memblockq_peek(pa_memblockq* bq, pa_memchunk *chunk); +/* Much like pa_memblockq_peek, but guarantees that the returned chunk + * will have a length of the block size passed. You must configure a + * silence memchunk for this memblockq if you use this call. */ +int pa_memblockq_peek_fixed_size(pa_memblockq *bq, size_t block_size, pa_memchunk *chunk); + /* Drop the specified bytes from the queue. */ void pa_memblockq_drop(pa_memblockq *bq, size_t length); |