From 528715a672a53156d7cb1382c344954d4d59cfc6 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 16 Aug 2014 05:52:05 -0400 Subject: Fix warnings from 6ed0087 Forgot to (void) an unused parameter when priorityless. usb-drv-rl27xx.c was using a compound init to initialize a semaphore but the structure changed so that it is no longer correct. Use designated initializers to avoid having to complete all fields. Forgot to break compatibility on all plugins and codecs since the kernel objects are now different. Take care of that too and do the sort thing. Change-Id: Ie2ab8da152d40be0c69dc573ced8d697d94b0674 --- apps/plugin.c | 2 +- apps/plugin.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'apps') diff --git a/apps/plugin.c b/apps/plugin.c index d0e6ade547..8edc773239 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -697,6 +697,7 @@ static const struct plugin_api rockbox_api = { #endif plugin_get_buffer, plugin_get_audio_buffer, /* defined in plugin.c */ + plugin_release_audio_buffer, /* defined in plugin.c */ plugin_tsr, /* defined in plugin.c */ plugin_get_current_filename, #if defined(DEBUG) || defined(SIMULATOR) @@ -804,7 +805,6 @@ static const struct plugin_api rockbox_api = { /* new stuff at the end, sort into place next time the API gets incompatible */ - plugin_release_audio_buffer, /* defined in plugin.c */ }; static int plugin_buffer_handle; diff --git a/apps/plugin.h b/apps/plugin.h index 1ed1c041d1..8b8481b6ac 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -160,12 +160,12 @@ void* plugin_get_buffer(size_t *buffer_size); #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 230 +#define PLUGIN_API_VERSION 231 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any new function which are "waiting" at the end of the function table) */ -#define PLUGIN_MIN_API_VERSION 230 +#define PLUGIN_MIN_API_VERSION 231 /* plugin return codes */ /* internal returns start at 0x100 to make exit(1..255) work */ @@ -843,6 +843,7 @@ struct plugin_api { #endif void* (*plugin_get_buffer)(size_t *buffer_size); void* (*plugin_get_audio_buffer)(size_t *buffer_size); + void (*plugin_release_audio_buffer)(void); void (*plugin_tsr)(bool (*exit_callback)(bool reenter)); char* (*plugin_get_current_filename)(void); #if defined(DEBUG) || defined(SIMULATOR) @@ -976,7 +977,6 @@ struct plugin_api { /* new stuff at the end, sort into place next time the API gets incompatible */ - void (*plugin_release_audio_buffer)(void); }; /* plugin header */ -- cgit v1.2.3