mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
initial commit
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@3 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
b1c00dcd0a
commit
9cb0b933e2
47 changed files with 3425 additions and 0 deletions
24
src/memblockq.h
Normal file
24
src/memblockq.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#ifndef foomemblockqhfoo
|
||||
#define foomemblockqhfoo
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "memblock.h"
|
||||
|
||||
struct memblockq;
|
||||
|
||||
struct memblockq* memblockq_new(size_t maxlength, size_t base);
|
||||
void memblockq_free(struct memblockq* bq);
|
||||
|
||||
void memblockq_push(struct memblockq* bq, struct memchunk *chunk, size_t delta);
|
||||
|
||||
int memblockq_pop(struct memblockq* bq, struct memchunk *chunk);
|
||||
int memblockq_peek(struct memblockq* bq, struct memchunk *chunk);
|
||||
void memblockq_drop(struct memblockq *bq, size_t length);
|
||||
|
||||
void memblockq_shorten(struct memblockq *bq, size_t length);
|
||||
void memblockq_empty(struct memblockq *bq);
|
||||
|
||||
int memblockq_is_empty(struct memblockq *bq);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue