acb0917556
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30264 a1c6a512-1295-4272-9138-f99709370657
16 lines
592 B
C
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);
|