diff options
Diffstat (limited to 'apps/codecs/libgme/inflate/mallocer.h')
-rw-r--r-- | apps/codecs/libgme/inflate/mallocer.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/codecs/libgme/inflate/mallocer.h b/apps/codecs/libgme/inflate/mallocer.h new file mode 100644 index 0000000000..091643443c --- /dev/null +++ b/apps/codecs/libgme/inflate/mallocer.h | |||
@@ -0,0 +1,16 @@ | |||
1 | |||
2 | #define MEMPOOL_MAX 10 | ||
3 | #include <inttypes.h> | ||
4 | #include <stdlib.h> | ||
5 | |||
6 | int wpw_init_mempool(unsigned char mempool); | ||
7 | int wpw_init_mempool_pdm(unsigned char mempool, | ||
8 | unsigned char* mem,long memsize); | ||
9 | |||
10 | void wpw_reset_mempool(unsigned char mempool); | ||
11 | void wpw_destroy_mempool(unsigned char mempool); | ||
12 | void* wpw_malloc(unsigned char mempool,size_t size); | ||
13 | void* wpw_calloc(unsigned char mempool,size_t nmemb, size_t size); | ||
14 | void wpw_free(unsigned char mempool,void* ptr); | ||
15 | void* wpw_realloc(unsigned char mempool,void* ptr, size_t size); | ||
16 | long wpw_available(unsigned char mempool); | ||