From a6d409d9db969aedd3977ca3d0894bbf75533e39 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 23 Nov 2005 20:12:33 +0000 Subject: Replaced the booolean 'Backlight On When Plugged' setting with a complete alternative 'Backlight When Plugged' timeout setting. * Yield during poweroff to make backlight_off() work. * Bumped config version, save your settings. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8053 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/backlight.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/backlight.h b/firmware/export/backlight.h index 6d3d4d5451..9c3f5aa90b 100644 --- a/firmware/export/backlight.h +++ b/firmware/export/backlight.h @@ -26,13 +26,12 @@ void backlight_off(void); void backlight_set_timeout(int index); #ifdef CONFIG_BACKLIGHT void backlight_init(void); -int backlight_get_timeout(void); +int backlight_get_current_timeout(void); #if CONFIG_BACKLIGHT == BL_IRIVER_H100 void backlight_set_fade_in(int index); void backlight_set_fade_out(int index); #endif -bool backlight_get_on_when_charging(void); -void backlight_set_on_when_charging(bool yesno); +void backlight_set_timeout_plugged(int index); extern const char backlight_timeout_value[]; #else #define backlight_init() @@ -42,7 +41,7 @@ extern const char backlight_timeout_value[]; void remote_backlight_on(void); void remote_backlight_off(void); void remote_backlight_set_timeout(int index); -void remote_backlight_set_on_when_charging(bool yesno); +void remote_backlight_set_timeout_plugged(int index); #endif #ifdef SIMULATOR -- cgit v1.2.3