forked from len0rd/rockbox
plugins HAVE_BACKLIGHT helper remove ifdefs in favor of dummy functions
lessen the ifdef hell Change-Id: I52f830284e4599f3fc3a75c27dda27058b8de1a3
This commit is contained in:
parent
3745c813f9
commit
97a82ee3ec
38 changed files with 140 additions and 178 deletions
|
@ -32,39 +32,29 @@ void backlight_force_on(void);
|
|||
void backlight_ignore_timeout(void);
|
||||
void backlight_use_settings(void);
|
||||
|
||||
#ifdef HAVE_SW_POWEROFF
|
||||
/**
|
||||
* Disable and restore software poweroff (i.e. holding PLAY on iPods).
|
||||
* Only call _restore() if _disable() was called earlier!
|
||||
*/
|
||||
void sw_poweroff_disable(void);
|
||||
void sw_poweroff_restore(void);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
void remote_backlight_force_on(void);
|
||||
void remote_backlight_ignore_timeout(void);
|
||||
void remote_backlight_use_settings(void);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_BUTTON_LIGHT
|
||||
void buttonlight_force_on(void);
|
||||
void buttonlight_force_off(void);
|
||||
void buttonlight_ignore_timeout(void);
|
||||
void buttonlight_use_settings(void);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Backlight brightness adjustment settings
|
||||
*/
|
||||
#ifdef HAVE_BACKLIGHT_BRIGHTNESS
|
||||
void backlight_brightness_set(int brightness);
|
||||
void backlight_brightness_use_setting(void);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
|
||||
void buttonlight_brightness_set(int brightness);
|
||||
void buttonlight_brightness_use_setting(void);
|
||||
#endif /* HAVE_BUTTONLIGHT_BRIGHTNESS */
|
||||
|
||||
#endif /* _LIB_HELPER_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue