rockbox/lib/rbcodec/codecs/libgme/inflate/mallocer.h
Sean Bartell f40bfc9267 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>
2012-04-25 22:13:20 +02:00

16 lines
592 B
C

#define MEMPOOL_MAX 10
#include <inttypes.h>
#include <stdlib.h>
int wpw_init_mempool(unsigned char mempool);
int wpw_init_mempool_pdm(unsigned char mempool,
unsigned char* mem,long memsize);
void wpw_reset_mempool(unsigned char mempool);
void wpw_destroy_mempool(unsigned char mempool);
void* wpw_malloc(unsigned char mempool,size_t size);
void* wpw_calloc(unsigned char mempool,size_t nmemb, size_t size);
void wpw_free(unsigned char mempool,void* ptr);
void* wpw_realloc(unsigned char mempool,void* ptr, size_t size);
long wpw_available(unsigned char mempool);