diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugin.c | 2 | ||||
-rw-r--r-- | apps/plugin.h | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 9a7e9b578c..13c829805f 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -147,7 +147,6 @@ static const struct plugin_api rockbox_api = { | |||
147 | gui_scrollbar_draw, | 147 | gui_scrollbar_draw, |
148 | #endif | 148 | #endif |
149 | 149 | ||
150 | #ifdef HAVE_BACKLIGHT | ||
151 | backlight_on, | 150 | backlight_on, |
152 | backlight_off, | 151 | backlight_off, |
153 | backlight_set_timeout, | 152 | backlight_set_timeout, |
@@ -159,7 +158,6 @@ static const struct plugin_api rockbox_api = { | |||
159 | backlight_set_timeout_plugged, | 158 | backlight_set_timeout_plugged, |
160 | #endif | 159 | #endif |
161 | is_backlight_on, | 160 | is_backlight_on, |
162 | #endif /* HAVE_BACKLIGHT */ | ||
163 | splash, | 161 | splash, |
164 | splashf, | 162 | splashf, |
165 | 163 | ||
diff --git a/apps/plugin.h b/apps/plugin.h index 634bbed0d8..4f747ea2b1 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -246,6 +246,13 @@ struct plugin_api { | |||
246 | #endif /* HAVE_LCD_BITMAP */ | 246 | #endif /* HAVE_LCD_BITMAP */ |
247 | 247 | ||
248 | /* backlight */ | 248 | /* backlight */ |
249 | /* The backlight_* functions must be present in the API regardless whether | ||
250 | * HAVE_BACKLIGHT is defined or not. The reason is that the stock Ondio has | ||
251 | * no backlight but can be modded to have backlight (it's prepared on the | ||
252 | * PCB). This makes backlight an all-target feature API wise, and keeps API | ||
253 | * compatible between stock and modded Ondio. | ||
254 | * For OLED targets like the Sansa Clip, the backlight_* functions control | ||
255 | * the display enable, which has essentially the same effect. */ | ||
249 | void (*backlight_on)(void); | 256 | void (*backlight_on)(void); |
250 | void (*backlight_off)(void); | 257 | void (*backlight_off)(void); |
251 | void (*backlight_set_timeout)(int index); | 258 | void (*backlight_set_timeout)(int index); |