summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-10-31 20:06:08 +0000
committerJens Arnold <amiconn@rockbox.org>2008-10-31 20:06:08 +0000
commit3aa58328080ab9a254d9f2329696fa4309a30d50 (patch)
treed1485fc76816b30395bf231dbfd758a5a7eb6974 /apps/plugin.h
parentcd9b1379fff9b2c2d4bb071c470053e02f4e2dd5 (diff)
downloadrockbox-3aa58328080ab9a254d9f2329696fa4309a30d50.tar.gz
rockbox-3aa58328080ab9a254d9f2329696fa4309a30d50.zip
Revert r18947, and add a comment why the backlight functions are wanted on all targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18949 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h7
1 files changed, 7 insertions, 0 deletions
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);