diff options
author | Teruaki Kawashima <teru@rockbox.org> | 2010-11-01 13:37:00 +0000 |
---|---|---|
committer | Teruaki Kawashima <teru@rockbox.org> | 2010-11-01 13:37:00 +0000 |
commit | f2dbbf45de036dfbcbea8f2650a50bfc5d088ff1 (patch) | |
tree | ed8e27dd67f8a8eecb6f30cc7d72d6be14091fa2 /apps/plugins/lib/helper.c | |
parent | d055ff4a94e5fe2f06a1454c4baa60c641ea8012 (diff) |
lamp plugin:
-handles sys_events.
-disable idle poweroff (part of FS#11578 by Hayden Pearce.)
-correct button table in the manual.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28429 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/helper.c')
-rw-r--r-- | apps/plugins/lib/helper.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/plugins/lib/helper.c b/apps/plugins/lib/helper.c index b95ee7ab35..ce84915e02 100644 --- a/apps/plugins/lib/helper.c +++ b/apps/plugins/lib/helper.c @@ -107,3 +107,15 @@ void backlight_brightness_use_setting(void) rb->backlight_set_brightness(rb->global_settings->brightness); } #endif /* HAVE_BACKLIGHT_BRIGHTNESS */ + +#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS +void buttonlight_brightness_set(int brightness) +{ + rb->buttonlight_set_brightness(brightness); +} + +void buttonlight_brightness_use_setting(void) +{ + rb->buttonlight_set_brightness(rb->global_settings->buttonlight_brightness); +} +#endif /* HAVE_BUTTONLIGHT_BRIGHTNESS */ |