forked from len0rd/rockbox
Added more functions to the plugin API.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4768 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f76ce2f351
commit
a3958793e1
2 changed files with 16 additions and 1 deletions
|
|
@ -233,6 +233,13 @@ static struct plugin_api rockbox_api = {
|
||||||
#endif
|
#endif
|
||||||
battery_level,
|
battery_level,
|
||||||
set_time,
|
set_time,
|
||||||
|
|
||||||
|
backlight_on,
|
||||||
|
backlight_off,
|
||||||
|
|
||||||
|
#ifdef HAVE_LCD_CHARCELLS
|
||||||
|
lcd_icon,
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
int plugin_load(char* plugin, void* parameter)
|
int plugin_load(char* plugin, void* parameter)
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* increase this every time the api struct changes */
|
/* increase this every time the api struct changes */
|
||||||
#define PLUGIN_API_VERSION 16
|
#define PLUGIN_API_VERSION 17
|
||||||
|
|
||||||
/* 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
|
||||||
|
|
@ -245,6 +245,7 @@ struct plugin_api {
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
struct font* (*font_get)(int font);
|
struct font* (*font_get)(int font);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(DEBUG) || defined(SIMULATOR)
|
#if defined(DEBUG) || defined(SIMULATOR)
|
||||||
void (*debugf)(char *fmt, ...);
|
void (*debugf)(char *fmt, ...);
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -267,6 +268,13 @@ struct plugin_api {
|
||||||
#endif
|
#endif
|
||||||
int (*battery_level)(void);
|
int (*battery_level)(void);
|
||||||
int (*set_time)(struct tm *tm);
|
int (*set_time)(struct tm *tm);
|
||||||
|
|
||||||
|
void (*backlight_on)(void);
|
||||||
|
void (*backlight_off)(void);
|
||||||
|
|
||||||
|
#ifdef HAVE_LCD_CHARCELLS
|
||||||
|
void (*lcd_icon)(int icon, bool enable);
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/* defined by the plugin loader (plugin.c) */
|
/* defined by the plugin loader (plugin.c) */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue