mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
more work
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@17 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
98f41f1e70
commit
78f386ad45
19 changed files with 269 additions and 201 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#define foomemblockhfoo
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
enum memblock_type { MEMBLOCK_FIXED, MEMBLOCK_APPENDED, MEMBLOCK_DYNAMIC };
|
||||
|
||||
|
|
@ -10,6 +11,7 @@ struct memblock {
|
|||
unsigned ref;
|
||||
size_t length;
|
||||
void *data;
|
||||
struct timeval stamp;
|
||||
};
|
||||
|
||||
struct memchunk {
|
||||
|
|
@ -26,6 +28,11 @@ struct memblock* memblock_ref(struct memblock*b);
|
|||
|
||||
void memblock_unref_fixed(struct memblock*b);
|
||||
|
||||
void memblock_stamp(struct memblock*b);
|
||||
uint32_t memblock_age(struct memblock*b);
|
||||
|
||||
#define memblock_assert_exclusive(b) assert((b)->ref == 1)
|
||||
|
||||
extern unsigned n_blocks;
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue