diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-08-13 22:31:11 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-08-13 22:31:11 +0000 |
commit | a5d4d67763a01f27453ae453c73e2bc4695131f9 (patch) | |
tree | 4c15a114b24ba96ec7f9096b06051c9d2f55c625 /apps/plugin.h | |
parent | 07a09041d6ca8c84280e9f9b372e8cc0eeb8166e (diff) |
Also keep the backlight on in mpegplayer when plugged in. Fixes FS #7584. Created two helper functions for this, because this issue also exists in other plugins (to do). The helper functions are in the pluginlib in helper.[ch], where other common stuff can be put.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14321 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index a424531a96..b446f62421 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -112,12 +112,12 @@ #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 71 +#define PLUGIN_API_VERSION 72 /* 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 71 +#define PLUGIN_MIN_API_VERSION 72 /* plugin return codes */ enum plugin_status { @@ -210,6 +210,9 @@ struct plugin_api { void (*backlight_on)(void); void (*backlight_off)(void); void (*backlight_set_timeout)(int index); +#if CONFIG_CHARGING + void (*backlight_set_timeout_plugged)(int index); +#endif void (*splash)(int ticks, const char *fmt, ...) ATTRIBUTE_PRINTF(2, 3); #ifdef HAVE_REMOTE_LCD |