From 652657781805d9cc10d744a49fb23eb17019fbbf Mon Sep 17 00:00:00 2001 From: Steve Bavin Date: Tue, 13 May 2008 09:57:56 +0000 Subject: Plugin parameters should be const. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17492 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/mp3_encoder.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/plugins/mp3_encoder.c') diff --git a/apps/plugins/mp3_encoder.c b/apps/plugins/mp3_encoder.c index a344bdc..db9c9d4 100644 --- a/apps/plugins/mp3_encoder.c +++ b/apps/plugins/mp3_encoder.c @@ -16,7 +16,7 @@ PLUGIN_HEADER PLUGIN_IRAM_DECLARE -static struct plugin_api* rb; +static const struct plugin_api* rb; MEM_FUNCTION_WRAPPERS(rb); @@ -806,7 +806,7 @@ static const int win_const[18][4] = { { 134, -146,-3352,-3072 } }; -static char* wav_filename; +static const char* wav_filename; static int mp3file, wavfile, wav_size, frames; static uint32 enc_buffer[16384]; /* storage for 65536 Bytes */ static int enc_chunk = 0; /* encode chunk counter */ @@ -2278,7 +2278,7 @@ void compress(void) int num_file; char mp3_name[80]; -void get_mp3_filename(char *wav_name) +void get_mp3_filename(const char *wav_name) { int slen = rb->strlen(wav_name); rb->strncpy(mp3_name, wav_name, 79); @@ -2353,7 +2353,7 @@ void get_mp3_filename(char *wav_name) #endif #endif -enum plugin_status plugin_start(struct plugin_api* api, void* parameter) +enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) { int rat, srat, nrat; /* for rate selection */ int cont = 1, butt; -- cgit v1.1