From 39718e358518ef16a42415a7b44b6e37bacaa656 Mon Sep 17 00:00:00 2001 From: Peter D'Hoye Date: Wed, 23 Apr 2008 21:15:07 +0000 Subject: Accept FS #8285 - "Flashlight" plugin by Vuong Minh Hiep, Thomas Martitz and Alexander Papst git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17226 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'apps/plugin.h') diff --git a/apps/plugin.h b/apps/plugin.h index 9e0386f..9ca1473 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -120,7 +120,7 @@ #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 108 +#define PLUGIN_API_VERSION 109 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any @@ -232,6 +232,7 @@ 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 @@ -723,7 +724,11 @@ struct plugin_api { /* new stuff at the end, sort into place next time the API gets incompatible */ - + +#ifdef HAVE_BACKLIGHT_BRIGHTNESS + void (*backlight_set_brightness)(int val); +#endif /* HAVE_BACKLIGHT_BRIGHTNESS */ + }; /* plugin header */ -- cgit v1.1