memblockq: add pa_memblockq_get_maxrewind() API

This commit is contained in:
Lennart Poettering 2009-08-14 04:16:28 +02:00
parent b0cabfe16b
commit a42c597f0a
2 changed files with 9 additions and 0 deletions

View 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);

View 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);