diff options
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) |