summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2012-03-04 14:44:43 -0500
committerMichael Sevakis <jethead71@rockbox.org>2012-03-04 14:50:47 -0500
commitd18a5cad7f002b2f67385e57118048ea3db185a6 (patch)
tree61b8eafcf9d0197a8bc1f6c795c775f9170a4f64 /apps/plugins
parent534117d1e0d01b78d0ab9040e64fbd88213cd805 (diff)
downloadrockbox-d18a5cad7f002b2f67385e57118048ea3db185a6.tar.gz
rockbox-d18a5cad7f002b2f67385e57118048ea3db185a6.zip
Tweak paramters of mp3_play_data and callback.
Use generic void * and size_t and make mp3_play_data and its callback agree on types. Use mp3_play_callback_t instead of prototyping right in the function call (so it's not so messy to look at). Change doesn't appear to require plugin API version increment. Change-Id: Idcab2740ee316a2beb6e0a87b8f4934d9d6b3dd8
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/chip8.c2
-rw-r--r--apps/plugins/metronome.c2
-rw-r--r--apps/plugins/video.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/chip8.c b/apps/plugins/chip8.c
index 0e1b9c5213..b2faed5d80 100644
--- a/apps/plugins/chip8.c
+++ b/apps/plugins/chip8.c
@@ -1268,7 +1268,7 @@ static unsigned char beep[]={255,
1268111,181,184,144, 17,148, 21,101,166,227,100, 86, 85, 85, 85}; 1268111,181,184,144, 17,148, 21,101,166,227,100, 86, 85, 85, 85};
1269 1269
1270/* callback to request more mp3 data */ 1270/* callback to request more mp3 data */
1271static void callback(unsigned char** start, size_t* size) 1271static void callback(const void** start, size_t* size)
1272{ 1272{
1273 *start = beep; /* give it the same frame again */ 1273 *start = beep; /* give it the same frame again */
1274 *size = sizeof(beep); 1274 *size = sizeof(beep);
diff --git a/apps/plugins/metronome.c b/apps/plugins/metronome.c
index 297405571f..54af82fa76 100644
--- a/apps/plugins/metronome.c
+++ b/apps/plugins/metronome.c
@@ -683,7 +683,7 @@ int bpm_step_counter = 0;
683#define MET_IS_PLAYING rb->mp3_is_playing() 683#define MET_IS_PLAYING rb->mp3_is_playing()
684#define MET_PLAY_STOP rb->mp3_play_stop() 684#define MET_PLAY_STOP rb->mp3_play_stop()
685 685
686static void callback(unsigned char** start, size_t* size) 686static void callback(const void** start, size_t* size)
687{ 687{
688 (void)start; /* unused parameter, avoid warning */ 688 (void)start; /* unused parameter, avoid warning */
689 *size = 0; /* end of data */ 689 *size = 0; /* end of data */
diff --git a/apps/plugins/video.c b/apps/plugins/video.c
index 9053ae7fb0..6a66324a79 100644
--- a/apps/plugins/video.c
+++ b/apps/plugins/video.c
@@ -448,7 +448,7 @@ static void timer4_isr(void)
448 448
449 449
450/* ISR function to get more mp3 data */ 450/* ISR function to get more mp3 data */
451static void GetMoreMp3(unsigned char** start, size_t* size) 451static void GetMoreMp3(const void** start, size_t* size)
452{ 452{
453 int available; 453 int available;
454 int advance; 454 int advance;