diff options
| author | Kjell Ericson <kjell@haxx.se> | 2004-06-18 09:03:04 +0000 |
|---|---|---|
| committer | Kjell Ericson <kjell@haxx.se> | 2004-06-18 09:03:04 +0000 |
| commit | a3958793e148d478ea7f1a76fcb0e0ef0e7f833b (patch) | |
| tree | 03cef7a9ee607056709418a63c0db78fffa50758 /apps | |
| parent | f76ce2f35171c0aa47876482b4dc26a64778825d (diff) | |
| download | rockbox-a3958793e148d478ea7f1a76fcb0e0ef0e7f833b.zip rockbox-a3958793e148d478ea7f1a76fcb0e0ef0e7f833b.tar.gz rockbox-a3958793e148d478ea7f1a76fcb0e0ef0e7f833b.tar.bz2 rockbox-a3958793e148d478ea7f1a76fcb0e0ef0e7f833b.tar.xz | |
Added more functions to the plugin API.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4768 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/plugin.c | 7 | ||||
| -rw-r--r-- | apps/plugin.h | 10 |
2 files changed, 16 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index dff4d6b..a9a2dfb 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -233,6 +233,13 @@ static struct plugin_api rockbox_api = { #endif battery_level, set_time, + + backlight_on, + backlight_off, + +#ifdef HAVE_LCD_CHARCELLS + lcd_icon, +#endif }; int plugin_load(char* plugin, void* parameter) diff --git a/apps/plugin.h b/apps/plugin.h index 33112bb..a11922c 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -56,7 +56,7 @@ #endif /* 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 backwards compatibility (and please take the opportunity to sort in any @@ -245,6 +245,7 @@ struct plugin_api { #ifdef HAVE_LCD_BITMAP struct font* (*font_get)(int font); #endif + #if defined(DEBUG) || defined(SIMULATOR) void (*debugf)(char *fmt, ...); #endif @@ -267,6 +268,13 @@ struct plugin_api { #endif int (*battery_level)(void); 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) */ |