diff options
| author | Peter D'Hoye <peter.dhoye@gmail.com> | 2008-04-23 21:15:07 +0000 |
|---|---|---|
| committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2008-04-23 21:15:07 +0000 |
| commit | 39718e358518ef16a42415a7b44b6e37bacaa656 (patch) | |
| tree | be66533008c2b94f4b513d2c87351f0f357f9109 /apps/plugin.h | |
| parent | a616c4851a7c3496e0aae15cdb382f4d0219dc8a (diff) | |
| download | rockbox-39718e358518ef16a42415a7b44b6e37bacaa656.zip rockbox-39718e358518ef16a42415a7b44b6e37bacaa656.tar.gz rockbox-39718e358518ef16a42415a7b44b6e37bacaa656.tar.bz2 rockbox-39718e358518ef16a42415a7b44b6e37bacaa656.tar.xz | |
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
Diffstat (limited to 'apps/plugin.h')
| -rw-r--r-- | apps/plugin.h | 9 |
1 files changed, 7 insertions, 2 deletions
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 */ |