add pa_memblockq_get_base()
authorLennart Poettering <lennart@poettering.net>
Mon, 16 Jun 2008 19:01:09 +0000 (19:01 +0000)
committerLennart Poettering <lennart@poettering.net>
Mon, 16 Jun 2008 19:01:09 +0000 (19:01 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2539 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/pulsecore/memblockq.c
src/pulsecore/memblockq.h

index c047e56..e058765 100644 (file)
@@ -908,3 +908,9 @@ unsigned pa_memblockq_get_nblocks(pa_memblockq *bq) {
 
     return bq->n_blocks;
 }
+
+size_t pa_memblockq_get_base(pa_memblockq *bq) {
+    pa_assert(bq);
+
+    return bq->base;
+}
index 7c38757..29d3f79 100644 (file)
@@ -169,4 +169,6 @@ pa_bool_t pa_memblockq_prebuf_active(pa_memblockq *bq);
 
 unsigned pa_memblockq_get_nblocks(pa_memblockq *bq);
 
+size_t pa_memblockq_get_base(pa_memblockq *bq);
+
 #endif