]> code.delx.au - pulseaudio/blob - polyp/memchunk.h
Make the whole stuff LGPL only
[pulseaudio] / polyp / memchunk.h
1 #ifndef foomemchunkhfoo
2 #define foomemchunkhfoo
3
4 /* $Id$ */
5
6 /***
7 This file is part of polypaudio.
8
9 polypaudio is free software; you can redistribute it and/or modify
10 it under the terms of the GNU Lesser General Public License as
11 published by the Free Software Foundation; either version 2.1 of the
12 License, or (at your option) any later version.
13
14 polypaudio is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public
20 License along with polypaudio; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22 USA.
23 ***/
24
25 #include "memblock.h"
26
27 struct pa_memchunk {
28 struct pa_memblock *memblock;
29 size_t index, length;
30 };
31
32 void pa_memchunk_make_writable(struct pa_memchunk *c, struct pa_memblock_stat *s);
33
34 struct pa_mcalign;
35
36 struct pa_mcalign *pa_mcalign_new(size_t base, struct pa_memblock_stat *s);
37 void pa_mcalign_free(struct pa_mcalign *m);
38 void pa_mcalign_push(struct pa_mcalign *m, const struct pa_memchunk *c);
39 int pa_mcalign_pop(struct pa_mcalign *m, struct pa_memchunk *c);
40
41 #endif