diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2012-03-03 07:10:56 -0500 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2012-03-03 07:10:56 -0500 |
commit | f688710707f3af56a5949b8ae3957c9408b25392 (patch) | |
tree | 5e0a15f00d66337123406c09c207f531a4c18eca /apps/plugin.h | |
parent | a92696d40d3515d4391ffba043894ebbad80cab6 (diff) | |
download | rockbox-f688710707f3af56a5949b8ae3957c9408b25392.tar.gz rockbox-f688710707f3af56a5949b8ae3957c9408b25392.zip |
Change keyclick_click so that it may accept raw buttons or actions.
Adds a new context, CONTEXT_RAWBUTTON, that I hope is out of the way
of everything. Unfortunately have to increment min plugin API version
for the second time today to accomodate additional parameter.
Change-Id: Iaa46b926e57cf377fd4906f2d42bb98e87215033
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index e07ec92c08..bddf23b5d2 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -153,12 +153,12 @@ void* plugin_get_buffer(size_t *buffer_size); | |||
153 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 153 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
154 | 154 | ||
155 | /* increase this every time the api struct changes */ | 155 | /* increase this every time the api struct changes */ |
156 | #define PLUGIN_API_VERSION 217 | 156 | #define PLUGIN_API_VERSION 218 |
157 | 157 | ||
158 | /* update this to latest version if a change to the api struct breaks | 158 | /* update this to latest version if a change to the api struct breaks |
159 | backwards compatibility (and please take the opportunity to sort in any | 159 | backwards compatibility (and please take the opportunity to sort in any |
160 | new function which are "waiting" at the end of the function table) */ | 160 | new function which are "waiting" at the end of the function table) */ |
161 | #define PLUGIN_MIN_API_VERSION 217 | 161 | #define PLUGIN_MIN_API_VERSION 218 |
162 | 162 | ||
163 | /* plugin return codes */ | 163 | /* plugin return codes */ |
164 | /* internal returns start at 0x100 to make exit(1..255) work */ | 164 | /* internal returns start at 0x100 to make exit(1..255) work */ |
@@ -705,7 +705,7 @@ struct plugin_api { | |||
705 | size_t (*mixer_channel_get_bytes_waiting)(enum pcm_mixer_channel channel); | 705 | size_t (*mixer_channel_get_bytes_waiting)(enum pcm_mixer_channel channel); |
706 | 706 | ||
707 | void (*system_sound_play)(enum system_sound sound); | 707 | void (*system_sound_play)(enum system_sound sound); |
708 | void (*keyclick_click)(int button); | 708 | void (*keyclick_click)(int context, int action); |
709 | #endif /* CONFIG_CODEC == SWCODC */ | 709 | #endif /* CONFIG_CODEC == SWCODC */ |
710 | 710 | ||
711 | /* playback control */ | 711 | /* playback control */ |