added backlight_get_timeout and backlight_get_on_when_charging
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2994 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
342319a6d5
commit
86ddabf75d
|
@ -120,12 +120,22 @@ void backlight_off(void)
|
||||||
queue_post(&backlight_queue, BACKLIGHT_OFF, NULL);
|
queue_post(&backlight_queue, BACKLIGHT_OFF, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int backlight_get_timeout(void)
|
||||||
|
{
|
||||||
|
return backlight_timeout;
|
||||||
|
}
|
||||||
|
|
||||||
void backlight_set_timeout(int seconds)
|
void backlight_set_timeout(int seconds)
|
||||||
{
|
{
|
||||||
backlight_timeout = seconds;
|
backlight_timeout = seconds;
|
||||||
backlight_on();
|
backlight_on();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool backlight_get_on_when_charging(void)
|
||||||
|
{
|
||||||
|
return backlight_on_when_charging;
|
||||||
|
}
|
||||||
|
|
||||||
void backlight_set_on_when_charging(bool yesno)
|
void backlight_set_on_when_charging(bool yesno)
|
||||||
{
|
{
|
||||||
backlight_on_when_charging = yesno;
|
backlight_on_when_charging = yesno;
|
||||||
|
|
|
@ -23,7 +23,9 @@ void backlight_init(void);
|
||||||
void backlight_on(void);
|
void backlight_on(void);
|
||||||
void backlight_off(void);
|
void backlight_off(void);
|
||||||
void backlight_tick(void);
|
void backlight_tick(void);
|
||||||
|
int backlight_get_timeout(void);
|
||||||
void backlight_set_timeout(int seconds);
|
void backlight_set_timeout(int seconds);
|
||||||
|
bool backlight_get_on_when_charging(void);
|
||||||
void backlight_set_on_when_charging(bool yesno);
|
void backlight_set_on_when_charging(bool yesno);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user