From 224c0a13ebb5828b9bc06a9c1c23ae17f0ac19f9 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 15 Aug 2006 12:27:07 +0000 Subject: Finally, the new button action system is here, thanks to Jonathan Gordon. Some button mappings have changed and other things may break. Comments should go to the forum, http://forums.rockbox.org/index.php?topic=5829.0 or the mailing list. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10582 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'apps/plugin.h') diff --git a/apps/plugin.h b/apps/plugin.h index 505e7ec666..8384d8b9aa 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -38,6 +38,7 @@ #include "dir.h" #include "kernel.h" #include "button.h" +#include "action.h" #include "usb.h" #include "font.h" #include "system.h" @@ -104,7 +105,7 @@ #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 28 +#define PLUGIN_API_VERSION 29 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any @@ -546,6 +547,12 @@ struct plugin_api { #endif int (*PREFIX(rmdir))(const char *name); + /* action handling */ + int (*get_custom_action)(int context,int timeout, + struct button_mapping* (*get_context_map)(int)); + int (*get_action)(int context, int timeout); + void (*action_signalscreenchange)(void); + bool (*action_userabort)(int timeout); }; /* plugin header */ -- cgit v1.2.3