summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-05-15 06:58:36 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-05-15 06:58:36 +0000
commit3e5b38945ce91fec163d252fb83e4b3c52cbbc15 (patch)
tree432d25ede2866864a25ea8d1313946c1dbdf827c /apps/plugin.h
parent6450de3eae5a05bf6539e0b02ba1055364424cd4 (diff)
downloadrockbox-3e5b38945ce91fec163d252fb83e4b3c52cbbc15.zip
rockbox-3e5b38945ce91fec163d252fb83e4b3c52cbbc15.tar.gz
rockbox-3e5b38945ce91fec163d252fb83e4b3c52cbbc15.tar.bz2
rockbox-3e5b38945ce91fec163d252fb83e4b3c52cbbc15.tar.xz
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.h')
-rw-r--r--apps/plugin.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 87b1293..517358c 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -212,7 +212,10 @@ struct plugin_api {
void (*lcd_puts_style)(int x, int y, const unsigned char *str, int style);
void (*lcd_puts_scroll_style)(int x, int y, const unsigned char* string,
int style);
-
+#ifdef HAVE_LCD_INVERT
+ void (*lcd_set_invert_display)(bool yesno);
+#endif /* HAVE_LCD_INVERT */
+
unsigned short *(*bidi_l2v)( const unsigned char *str, int orientation );
const unsigned char *(*font_get_bits)( struct font *pf, unsigned short char_code );
struct font* (*font_load)(const char *path);
@@ -232,6 +235,9 @@ struct plugin_api {
void (*backlight_on)(void);
void (*backlight_off)(void);
void (*backlight_set_timeout)(int index);
+#ifdef HAVE_BACKLIGHT_BRIGHTNESS
+ void (*backlight_set_brightness)(int val);
+#endif /* HAVE_BACKLIGHT_BRIGHTNESS */
#if CONFIG_CHARGING
void (*backlight_set_timeout_plugged)(int index);
@@ -311,12 +317,26 @@ struct plugin_api {
/* button */
long (*button_get)(bool block);
long (*button_get_w_tmo)(int ticks);
+#ifdef HAVE_BUTTON_DATA
+ intptr_t (*button_get_data)(void);
+#endif
+#ifdef HAVE_TOUCHPAD
+ void (*touchpad_set_mode)(enum touchpad_mode);
+#endif
int (*button_status)(void);
void (*button_clear_queue)(void);
int (*button_queue_count)(void);
#ifdef HAS_BUTTON_HOLD
bool (*button_hold)(void);
#endif
+#ifdef HAVE_BUTTON_LIGHT
+ void (*buttonlight_set_timeout)(int value);
+ void (*buttonlight_off)(void);
+ void (*buttonlight_on)(void);
+#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
+ void (*buttonlight_set_brightness)(int val);
+#endif /* HAVE_BUTTONLIGHT_BRIGHTNESS */
+#endif /* HAVE_BUTTON_LIGHT */
/* file */
int (*PREFIX(open))(const char* pathname, int flags);
@@ -569,7 +589,7 @@ struct plugin_api {
/* options */
const struct settings_list* (*find_setting)(const void* variable, int *id);
- bool (*option_screen)(struct settings_list *setting,
+ bool (*option_screen)(const struct settings_list *setting,
struct viewport parent[NB_SCREENS],
bool use_temp_var, unsigned char* option_title);
bool (*set_option)(const char* string, const void* variable,
@@ -725,26 +745,6 @@ struct plugin_api {
/* new stuff at the end, sort into place next time
the API gets incompatible */
-#ifdef HAVE_BACKLIGHT_BRIGHTNESS
- void (*backlight_set_brightness)(int val);
-#endif /* HAVE_BACKLIGHT_BRIGHTNESS */
-#ifdef HAVE_LCD_INVERT
- void (*lcd_set_invert_display)(bool yesno);
-#endif /* HAVE_LCD_INVERT */
-#ifdef HAVE_BUTTON_DATA
- intptr_t (*button_get_data)(void);
-#endif /* HAVE_BUTTON_DATA */
-#ifdef HAVE_TOUCHPAD
- void (*touchpad_set_mode)(enum touchpad_mode);
-#endif /* HAVE_TOUCHPAD */
-#ifdef HAVE_BUTTON_LIGHT
- void (*buttonlight_set_timeout)(int value);
- void (*buttonlight_off)(void);
- void (*buttonlight_on)(void);
-#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
- void (*buttonlight_set_brightness)(int val);
-#endif /* HAVE_BUTTONLIGHT_BRIGHTNESS */
-#endif /* HAVE_BUTTON_LIGHT */
};
/* plugin header */