more work

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@17 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2004-06-15 15:18:33 +00:00
parent 98f41f1e70
commit 78f386ad45
19 changed files with 269 additions and 201 deletions

View file

@ -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