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.zip rockbox-f688710707f3af56a5949b8ae3957c9408b25392.tar.gz rockbox-f688710707f3af56a5949b8ae3957c9408b25392.tar.bz2 rockbox-f688710707f3af56a5949b8ae3957c9408b25392.tar.xz | |
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 e07ec92..bddf23b 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -153,12 +153,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 217 +#define PLUGIN_API_VERSION 218 /* 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 217 +#define PLUGIN_MIN_API_VERSION 218 /* plugin return codes */ /* internal returns start at 0x100 to make exit(1..255) work */ @@ -705,7 +705,7 @@ struct plugin_api { size_t (*mixer_channel_get_bytes_waiting)(enum pcm_mixer_channel channel); void (*system_sound_play)(enum system_sound sound); - void (*keyclick_click)(int button); + void (*keyclick_click)(int context, int action); #endif /* CONFIG_CODEC == SWCODC */ /* playback control */ |