summaryrefslogtreecommitdiff
path: root/lib/rbcodec/codecs/libgme/inflate/mallocer.h
diff options
context:
space:
mode:
authorSean Bartell <wingedtachikoma@gmail.com>2011-06-25 21:32:25 -0400
committerNils Wallménius <nils@rockbox.org>2012-04-25 22:13:20 +0200
commitf40bfc9267b13b54e6379dfe7539447662879d24 (patch)
tree9b20069d5e62809ff434061ad730096836f916f2 /lib/rbcodec/codecs/libgme/inflate/mallocer.h
parenta0009907de7a0107d49040d8a180f140e2eff299 (diff)
downloadrockbox-f40bfc9267b13b54e6379dfe7539447662879d24.tar.gz
rockbox-f40bfc9267b13b54e6379dfe7539447662879d24.zip
Add codecs to librbcodec.
Change-Id: Id7f4717d51ed02d67cb9f9cb3c0ada4a81843f97 Reviewed-on: http://gerrit.rockbox.org/137 Reviewed-by: Nils Wallménius <nils@rockbox.org> Tested-by: Nils Wallménius <nils@rockbox.org>
Diffstat (limited to 'lib/rbcodec/codecs/libgme/inflate/mallocer.h')
-rw-r--r--lib/rbcodec/codecs/libgme/inflate/mallocer.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/rbcodec/codecs/libgme/inflate/mallocer.h b/lib/rbcodec/codecs/libgme/inflate/mallocer.h
new file mode 100644
index 0000000000..091643443c
--- /dev/null
+++ b/lib/rbcodec/codecs/libgme/inflate/mallocer.h
@@ -0,0 +1,16 @@
1
2#define MEMPOOL_MAX 10
3#include <inttypes.h>
4#include <stdlib.h>
5
6int wpw_init_mempool(unsigned char mempool);
7int wpw_init_mempool_pdm(unsigned char mempool,
8 unsigned char* mem,long memsize);
9
10void wpw_reset_mempool(unsigned char mempool);
11void wpw_destroy_mempool(unsigned char mempool);
12void* wpw_malloc(unsigned char mempool,size_t size);
13void* wpw_calloc(unsigned char mempool,size_t nmemb, size_t size);
14void wpw_free(unsigned char mempool,void* ptr);
15void* wpw_realloc(unsigned char mempool,void* ptr, size_t size);
16long wpw_available(unsigned char mempool);