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.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/plugin.c') 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) -- cgit v1.1