From d18a5cad7f002b2f67385e57118048ea3db185a6 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sun, 4 Mar 2012 14:44:43 -0500 Subject: 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 --- firmware/export/mp3_playback.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/mp3_playback.h b/firmware/export/mp3_playback.h index 6fdaa31cac..de27a2a46d 100644 --- a/firmware/export/mp3_playback.h +++ b/firmware/export/mp3_playback.h @@ -26,6 +26,9 @@ #include +/* callback fn */ +typedef void (*mp3_play_callback_t)(const void **start, size_t* size); + /* functions formerly in mpeg.c */ void mp3_init(int volume, int bass, int treble, int balance, int loudness, int avc, int channel_config, int stereo_width, @@ -42,9 +45,8 @@ void demand_irq_enable(bool on); #if CONFIG_CODEC == MAS3587F void mp3_play_init(void); #endif -void mp3_play_data(const unsigned char* start, int size, - void (*get_more)(unsigned char** start, size_t* size) /* callback fn */ -); +void mp3_play_data(const void* start, size_t size, + mp3_play_callback_t get_more); void mp3_play_pause(bool play); bool mp3_pause_done(void); void mp3_play_stop(void); -- cgit v1.2.3