From 284516185f90412c22dfa9a28cb93fb344af591b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 18 May 2007 00:10:02 +0000 Subject: really prefix everything with "sa_" git-svn-id: file:///home/lennart/svn/public/libsydney/trunk@28 9ba3c220-e4d3-45a2-8aa3-73fcc9aff6ce --- bufferq.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'bufferq.h') diff --git a/bufferq.h b/bufferq.h index da4eac3..a645398 100644 --- a/bufferq.h +++ b/bufferq.h @@ -7,29 +7,29 @@ #include "llist.h" #include "sydney.h" -typedef struct bufferq_item { +typedef struct sa_bufferq_item { int64_t idx; size_t size; - SA_LLIST_ITEM(struct bufferq_item, bufferq); -} bufferq_item_t; + SA_LLIST_ITEM(struct sa_bufferq_item, bufferq); +} sa_bufferq_item_t; -#define BUFFERQ_ITEM_DATA(x) ((void*) (uint8_t*) (x) + ALIGN(sizeof(bufferq_item_t))) +#define SA_BUFFERQ_ITEM_DATA(x) ((void*) (uint8_t*) (x) + ALIGN(sizeof(sa_bufferq_item_t))) -typedef struct bufferq { - SA_LLIST_HEAD(bufferq_item_t, *items); - bufferq_item_t **last; +typedef struct sa_bufferq { + SA_LLIST_HEAD(sa_bufferq_item_t, *items); + sa_bufferq_item_t **last; int64_t read_index, write_index, end_index; size_t sample_size; unsigned nchannels; -} bufferq_t; +} sa_bufferq_t; -int bufferq_init(bufferq_t *q, unsigned nchannels, size_t sample_size); +int sa_bufferq_init(sa_bufferq_t *q, unsigned nchannels, size_t sample_size); -void bufferq_done(bufferq_t *q); +void sa_bufferq_done(sa_bufferq_t *q); -int bufferq_push(bufferq_t *q, unsigned channel, const void *data, size_t nbytes, int64_t offset, sa_seek_t whence); +int sa_bufferq_push(sa_bufferq_t *q, unsigned channel, const void *data, size_t nbytes, int64_t offset, sa_seek_t whence); -int bufferq_get(bufferq_t *q, void *i[], size_t *bytes); -int bufferq_drop(bufferq_t *q, int64_t bytes); +int sa_bufferq_get(sa_bufferq_t *q, void *i[], size_t *bytes); +int sa_bufferq_drop(sa_bufferq_t *q, int64_t bytes); #endif -- cgit