forgot to add memchunk.[ch]

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@46 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2004-07-03 00:19:40 +00:00
parent 741aa44ffc
commit 253c540e84
2 changed files with 144 additions and 0 deletions

20
src/memchunk.h Normal file
View file

@ -0,0 +1,20 @@
#ifndef foomemchunkhfoo
#define foomemchunkhfoo
#include "memblock.h"
struct memchunk {
struct memblock *memblock;
size_t index, length;
};
void memchunk_make_writable(struct memchunk *c);
struct mcalign;
struct mcalign *mcalign_new(size_t base);
void mcalign_free(struct mcalign *m);
void mcalign_push(struct mcalign *m, const struct memchunk *c);
int mcalign_pop(struct mcalign *m, struct memchunk *c);
#endif