diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2007-11-25 17:36:21 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2007-11-25 17:36:21 +0000 |
| commit | d490f441126542f961da4132b59d843140709b3e (patch) | |
| tree | ef1c0e0cf4b5cd453d01101432990a02d8ba88a9 /firmware/export/backlight.h | |
| parent | 54ecc698a54cf0b30dfda243ff149a1c6858e0f2 (diff) | |
| download | rockbox-d490f441126542f961da4132b59d843140709b3e.zip rockbox-d490f441126542f961da4132b59d843140709b3e.tar.gz rockbox-d490f441126542f961da4132b59d843140709b3e.tar.bz2 rockbox-d490f441126542f961da4132b59d843140709b3e.tar.xz | |
New way of handling integer settings with variable steps: table settings (FS #8186, with fixes by me). This allows to get rid of those synchronised tables in firmware/ and apps/, making things more flexible and less error prone. First application: backlight timeouts. * Make some more things 'const'.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15803 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/backlight.h')
| -rw-r--r-- | firmware/export/backlight.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/firmware/export/backlight.h b/firmware/export/backlight.h index 47fee7d..058f796 100644 --- a/firmware/export/backlight.h +++ b/firmware/export/backlight.h @@ -24,7 +24,7 @@ bool is_backlight_on(void); void backlight_on(void); void backlight_off(void); -void backlight_set_timeout(int index); +void backlight_set_timeout(int value); #ifdef HAVE_BACKLIGHT void backlight_init(void); @@ -36,8 +36,7 @@ void backlight_set_fade_in(int index); void backlight_set_fade_out(int index); #endif -void backlight_set_timeout_plugged(int index); -extern const signed char backlight_timeout_value[]; +void backlight_set_timeout_plugged(int value); #ifdef HAS_BUTTON_HOLD void backlight_hold_changed(bool hold_button); @@ -56,8 +55,8 @@ extern const signed char lcd_sleep_timeout_value[]; #ifdef HAVE_REMOTE_LCD void remote_backlight_on(void); void remote_backlight_off(void); -void remote_backlight_set_timeout(int index); -void remote_backlight_set_timeout_plugged(int index); +void remote_backlight_set_timeout(int value); +void remote_backlight_set_timeout_plugged(int value); bool is_remote_backlight_on(void); #ifdef HAS_REMOTE_BUTTON_HOLD @@ -82,7 +81,7 @@ void buttonlight_set_brightness(int val); #ifdef HAVE_BUTTON_LIGHT void buttonlight_on(void); void buttonlight_off(void); -void buttonlight_set_timeout(int index); +void buttonlight_set_timeout(int value); #endif /* Private API for use in target tree backlight code only */ |