summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2014-08-16 05:52:05 -0400
committerMichael Sevakis <jethead71@rockbox.org>2014-08-16 06:00:36 -0400
commit528715a672a53156d7cb1382c344954d4d59cfc6 (patch)
tree188251d2ff8ae495532d25c57adc9ba286f7e5e0 /apps
parent6ed00870abd566d7267d2436c2693f5a281cda2f (diff)
downloadrockbox-528715a672a53156d7cb1382c344954d4d59cfc6.tar.gz
rockbox-528715a672a53156d7cb1382c344954d4d59cfc6.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/plugin.c2
-rw-r--r--apps/plugin.h6
2 files changed, 4 insertions, 4 deletions
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 = {
697#endif 697#endif
698 plugin_get_buffer, 698 plugin_get_buffer,
699 plugin_get_audio_buffer, /* defined in plugin.c */ 699 plugin_get_audio_buffer, /* defined in plugin.c */
700 plugin_release_audio_buffer, /* defined in plugin.c */
700 plugin_tsr, /* defined in plugin.c */ 701 plugin_tsr, /* defined in plugin.c */
701 plugin_get_current_filename, 702 plugin_get_current_filename,
702#if defined(DEBUG) || defined(SIMULATOR) 703#if defined(DEBUG) || defined(SIMULATOR)
@@ -804,7 +805,6 @@ static const struct plugin_api rockbox_api = {
804 805
805 /* new stuff at the end, sort into place next time 806 /* new stuff at the end, sort into place next time
806 the API gets incompatible */ 807 the API gets incompatible */
807 plugin_release_audio_buffer, /* defined in plugin.c */
808}; 808};
809 809
810static int plugin_buffer_handle; 810static 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);
160#define PLUGIN_MAGIC 0x526F634B /* RocK */ 160#define PLUGIN_MAGIC 0x526F634B /* RocK */
161 161
162/* increase this every time the api struct changes */ 162/* increase this every time the api struct changes */
163#define PLUGIN_API_VERSION 230 163#define PLUGIN_API_VERSION 231
164 164
165/* update this to latest version if a change to the api struct breaks 165/* update this to latest version if a change to the api struct breaks
166 backwards compatibility (and please take the opportunity to sort in any 166 backwards compatibility (and please take the opportunity to sort in any
167 new function which are "waiting" at the end of the function table) */ 167 new function which are "waiting" at the end of the function table) */
168#define PLUGIN_MIN_API_VERSION 230 168#define PLUGIN_MIN_API_VERSION 231
169 169
170/* plugin return codes */ 170/* plugin return codes */
171/* internal returns start at 0x100 to make exit(1..255) work */ 171/* internal returns start at 0x100 to make exit(1..255) work */
@@ -843,6 +843,7 @@ struct plugin_api {
843#endif 843#endif
844 void* (*plugin_get_buffer)(size_t *buffer_size); 844 void* (*plugin_get_buffer)(size_t *buffer_size);
845 void* (*plugin_get_audio_buffer)(size_t *buffer_size); 845 void* (*plugin_get_audio_buffer)(size_t *buffer_size);
846 void (*plugin_release_audio_buffer)(void);
846 void (*plugin_tsr)(bool (*exit_callback)(bool reenter)); 847 void (*plugin_tsr)(bool (*exit_callback)(bool reenter));
847 char* (*plugin_get_current_filename)(void); 848 char* (*plugin_get_current_filename)(void);
848#if defined(DEBUG) || defined(SIMULATOR) 849#if defined(DEBUG) || defined(SIMULATOR)
@@ -976,7 +977,6 @@ struct plugin_api {
976 977
977 /* new stuff at the end, sort into place next time 978 /* new stuff at the end, sort into place next time
978 the API gets incompatible */ 979 the API gets incompatible */
979 void (*plugin_release_audio_buffer)(void);
980}; 980};
981 981
982/* plugin header */ 982/* plugin header */