]> git.ozlabs.org Git - ccan/blob - alloc/alloc.h
Allocator now has metadata.
[ccan] / alloc / alloc.h
1 #ifndef ALLOC_H
2 #define ALLOC_H
3 #include <stdbool.h>
4
5 void alloc_init(void *pool, unsigned long poolsize);
6 void *alloc_get(void *pool, unsigned long poolsize,
7                 unsigned long size, unsigned long align);
8 void alloc_free(void *pool, unsigned long poolsize, void *free);
9 bool alloc_check(void *pool, unsigned long poolsize);
10
11 #endif /* ALLOC_H */