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.c | |
| 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.c')
| -rw-r--r-- | apps/plugin.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index a7baa6d3..fa59fcf 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -141,6 +141,7 @@ static const struct plugin_api rockbox_api = { backlight_on, backlight_off, backlight_set_timeout, + #if CONFIG_CHARGING backlight_set_timeout_plugged, #endif @@ -577,6 +578,10 @@ static const struct plugin_api rockbox_api = { /* new stuff at the end, sort into place next time the API gets incompatible */ +#ifdef HAVE_BACKLIGHT_BRIGHTNESS + backlight_set_brightness, +#endif /* HAVE_BACKLIGHT_BRIGHTNESS */ + }; int plugin_load(const char* plugin, void* parameter) |