summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2007-06-13 15:35:07 +0000
committerNils Wallménius <nils@rockbox.org>2007-06-13 15:35:07 +0000
commitc7f9ca4067f26ba3d0471d50ed3f06b047171b50 (patch)
tree9bfaf2d5019c075ad97540a2beed8d68277ca021 /apps/plugin.h
parentf50bd1151a65b1aeefaeab545187fba29881b800 (diff)
downloadrockbox-c7f9ca4067f26ba3d0471d50ed3f06b047171b50.tar.gz
rockbox-c7f9ca4067f26ba3d0471d50ed3f06b047171b50.zip
Accept FS#7264 'Build with -Os switch for coldfire targets'.
Introduces MEM_FUNCTION_WRAPPERS(api) macro which adds wrappers functions to a plugin to make plugins link correctly when gcc calls mem* functions directly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13625 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index bc6adffab2..11bb80de66 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -114,12 +114,12 @@
114#define PLUGIN_MAGIC 0x526F634B /* RocK */ 114#define PLUGIN_MAGIC 0x526F634B /* RocK */
115 115
116/* increase this every time the api struct changes */ 116/* increase this every time the api struct changes */
117#define PLUGIN_API_VERSION 57 117#define PLUGIN_API_VERSION 58
118 118
119/* update this to latest version if a change to the api struct breaks 119/* update this to latest version if a change to the api struct breaks
120 backwards compatibility (and please take the opportunity to sort in any 120 backwards compatibility (and please take the opportunity to sort in any
121 new function which are "waiting" at the end of the function table) */ 121 new function which are "waiting" at the end of the function table) */
122#define PLUGIN_MIN_API_VERSION 56 122#define PLUGIN_MIN_API_VERSION 58
123 123
124/* plugin return codes */ 124/* plugin return codes */
125enum plugin_status { 125enum plugin_status {
@@ -417,7 +417,7 @@ struct plugin_api {
417 int (*sound_min)(int setting); 417 int (*sound_min)(int setting);
418 int (*sound_max)(int setting); 418 int (*sound_max)(int setting);
419#ifndef SIMULATOR 419#ifndef SIMULATOR
420 void (*mp3_play_data)(const unsigned char* start, int size, void (*get_more)(unsigned char** start, int* size)); 420 void (*mp3_play_data)(const unsigned char* start, int size, void (*get_more)(unsigned char** start, size_t* size));
421 void (*mp3_play_pause)(bool play); 421 void (*mp3_play_pause)(bool play);
422 void (*mp3_play_stop)(void); 422 void (*mp3_play_stop)(void);
423 bool (*mp3_is_playing)(void); 423 bool (*mp3_is_playing)(void);