forked from len0rd/rockbox
Move implementation of codec_get_buffer() to codec.c, make related variables static.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29839 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b452fa061d
commit
d68d02ec11
3 changed files with 23 additions and 21 deletions
|
@ -235,9 +235,6 @@ struct codec_header {
|
|||
struct codec_api **api;
|
||||
};
|
||||
|
||||
extern unsigned char codecbuf[];
|
||||
extern size_t codec_size;
|
||||
|
||||
#ifdef CODEC
|
||||
#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
|
||||
/* plugin_* is correct, codecs use the plugin linker script */
|
||||
|
@ -277,6 +274,9 @@ extern unsigned char plugin_end_addr[];
|
|||
assumes buffer size is MAX_PATH */
|
||||
void codec_get_full_path(char *path, const char *codec_root_fn);
|
||||
|
||||
/* Returns pointer to and size of free codec RAM */
|
||||
void *codeclib_get_buffer(size_t *size);
|
||||
|
||||
/* defined by the codec loader (codec.c) */
|
||||
int codec_load_buf(int hid, struct codec_api *api);
|
||||
int codec_load_file(const char* codec, struct codec_api *api);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue