From f688710707f3af56a5949b8ae3957c9408b25392 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 3 Mar 2012 07:10:56 -0500 Subject: 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 --- apps/plugin.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/plugin.h') 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 */ -- cgit v1.1