memblockq: add pa_memblockq_get_maxrewind() API
authorLennart Poettering <lennart@poettering.net>
Fri, 14 Aug 2009 02:16:28 +0000 (04:16 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 14 Aug 2009 02:16:28 +0000 (04:16 +0200)
src/pulsecore/memblockq.c
src/pulsecore/memblockq.h

index 77f9efc..32758be 100644 (file)
@@ -692,6 +692,12 @@ size_t pa_memblockq_get_minreq(pa_memblockq *bq) {
     return bq->minreq;
 }
 
+size_t pa_memblockq_get_maxrewind(pa_memblockq *bq) {
+    pa_assert(bq);
+
+    return bq->maxrewind;
+}
+
 int64_t pa_memblockq_get_read_index(pa_memblockq *bq) {
     pa_assert(bq);
 
index 146d261..587c364 100644 (file)
@@ -141,6 +141,9 @@ size_t pa_memblockq_get_prebuf(pa_memblockq *bq);
 /* Returns the minimal request value */
 size_t pa_memblockq_get_minreq(pa_memblockq *bq);
 
+/* Returns the maximal rewind value */
+size_t pa_memblockq_get_maxrewind(pa_memblockq *bq);
+
 /* Return the base unit in bytes */
 size_t pa_memblockq_get_base(pa_memblockq *bq);