diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-05-15 06:58:36 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-05-15 06:58:36 +0000 |
commit | 3e5b38945ce91fec163d252fb83e4b3c52cbbc15 (patch) | |
tree | 432d25ede2866864a25ea8d1313946c1dbdf827c /apps/plugin.c | |
parent | 6450de3eae5a05bf6539e0b02ba1055364424cd4 (diff) |
const raid in option_select
add table settings and fix int settings with negative step in option_select_next_val
bump plugin API and sort newer functions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17520 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
-rw-r--r-- | apps/plugin.c | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 10ac016e3a..102b28bc3b 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -128,6 +128,9 @@ static const struct plugin_api rockbox_api = { #endif /* LCD_DEPTH */ lcd_puts_style, lcd_puts_scroll_style, +#ifdef HAVE_LCD_INVERT + lcd_set_invert_display, +#endif /* HAVE_LCD_INVERT */ bidi_l2v, font_get_bits, font_load, @@ -141,6 +144,9 @@ static const struct plugin_api rockbox_api = { backlight_on, backlight_off, backlight_set_timeout, +#ifdef HAVE_BACKLIGHT_BRIGHTNESS + backlight_set_brightness, +#endif /* HAVE_BACKLIGHT_BRIGHTNESS */ #if CONFIG_CHARGING backlight_set_timeout_plugged, @@ -215,11 +221,26 @@ static const struct plugin_api rockbox_api = { button_get, button_get_w_tmo, button_status, +#ifdef HAVE_BUTTON_DATA + button_get_data, +#endif button_clear_queue, button_queue_count, #ifdef HAS_BUTTON_HOLD button_hold, #endif +#ifdef HAVE_TOUCHPAD + touchpad_set_mode, +#endif + +#ifdef HAVE_BUTTON_LIGHT + buttonlight_set_timeout, + buttonlight_off, + buttonlight_on, +#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS + buttonlight_set_brightness, +#endif /* HAVE_BUTTONLIGHT_BRIGHTNESS */ +#endif /* HAVE_BUTTON_LIGHT */ /* file */ (open_func)PREFIX(open), @@ -578,26 +599,6 @@ static const struct plugin_api rockbox_api = { /* new stuff at the end, sort into place next time the API gets incompatible */ -#ifdef HAVE_BACKLIGHT_BRIGHTNESS - backlight_set_brightness, -#endif /* HAVE_BACKLIGHT_BRIGHTNESS */ -#ifdef HAVE_LCD_INVERT - lcd_set_invert_display, -#endif /* HAVE_LCD_INVERT */ -#ifdef HAVE_BUTTON_DATA - button_get_data, -#endif /* HAVE_BUTTON_DATA */ -#ifdef HAVE_TOUCHPAD - touchpad_set_mode, -#endif /* HAVE_TOUCHPAD */ -#ifdef HAVE_BUTTON_LIGHT - buttonlight_set_timeout, - buttonlight_off, - buttonlight_on, -#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS - buttonlight_set_brightness, -#endif /* HAVE_BUTTONLIGHT_BRIGHTNESS */ -#endif /* HAVE_BUTTON_LIGHT */ }; int plugin_load(const char* plugin, const void* parameter) |