1
0
Fork 0
forked from len0rd/rockbox
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17522 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2008-05-15 07:13:03 +00:00
parent 92dae7c50b
commit 7e26412dd1

View file

@ -120,12 +120,12 @@
#define PLUGIN_MAGIC 0x526F634B /* RocK */ #define PLUGIN_MAGIC 0x526F634B /* RocK */
/* increase this every time the api struct changes */ /* increase this every time the api struct changes */
#define PLUGIN_API_VERSION 113 #define PLUGIN_API_VERSION 114
/* update this to latest version if a change to the api struct breaks /* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any backwards compatibility (and please take the opportunity to sort in any
new function which are "waiting" at the end of the function table) */ new function which are "waiting" at the end of the function table) */
#define PLUGIN_MIN_API_VERSION 113 #define PLUGIN_MIN_API_VERSION 114
/* plugin return codes */ /* plugin return codes */
enum plugin_status { enum plugin_status {
@ -317,18 +317,18 @@ struct plugin_api {
/* button */ /* button */
long (*button_get)(bool block); long (*button_get)(bool block);
long (*button_get_w_tmo)(int ticks); long (*button_get_w_tmo)(int ticks);
int (*button_status)(void);
#ifdef HAVE_BUTTON_DATA #ifdef HAVE_BUTTON_DATA
intptr_t (*button_get_data)(void); intptr_t (*button_get_data)(void);
#endif #endif
#ifdef HAVE_TOUCHPAD
void (*touchpad_set_mode)(enum touchpad_mode);
#endif
int (*button_status)(void);
void (*button_clear_queue)(void); void (*button_clear_queue)(void);
int (*button_queue_count)(void); int (*button_queue_count)(void);
#ifdef HAS_BUTTON_HOLD #ifdef HAS_BUTTON_HOLD
bool (*button_hold)(void); bool (*button_hold)(void);
#endif #endif
#ifdef HAVE_TOUCHPAD
void (*touchpad_set_mode)(enum touchpad_mode);
#endif
#ifdef HAVE_BUTTON_LIGHT #ifdef HAVE_BUTTON_LIGHT
void (*buttonlight_set_timeout)(int value); void (*buttonlight_set_timeout)(int value);
void (*buttonlight_off)(void); void (*buttonlight_off)(void);