summaryrefslogtreecommitdiff
path: root/apps/codecs/libgme/inflate/mallocer.h
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-08-07 20:01:04 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-08-07 20:01:04 +0000
commitacb0917556fc33681c1df5a530cf754193e67705 (patch)
tree052a47097009a210e4aed9c207bd6aa4828cc000 /apps/codecs/libgme/inflate/mallocer.h
parent93c6f1329a5691a8be158cefe15641bd1daf9ef8 (diff)
downloadrockbox-acb0917556fc33681c1df5a530cf754193e67705.tar.gz
rockbox-acb0917556fc33681c1df5a530cf754193e67705.zip
Submit initial patch from FS#12176. Adds support for several new game music formats (AY, GBS, HES, KSS, SGC, VGM and VGZ) and replaces the current NSF and NSFE with a new implementation based on a port of the Game Music Emu library 'GME'. This first submit does not cover the full functionality provided by the author's original patch: Coleco-SGV is not supported, some GME-specific m3u-support has been removed and IRAM is not used yet. Further changes are very likely to follow this submit. Thanks to Mauricio Garrido.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30264 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libgme/inflate/mallocer.h')
-rw-r--r--apps/codecs/libgme/inflate/mallocer.h16
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
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);