diff options
| -rw-r--r-- | apps/plugin.c | 3 | ||||
| -rw-r--r-- | apps/plugin.h | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 9ac9f85..c7758af 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -210,6 +210,9 @@ static struct plugin_api rockbox_api = { mpeg_next_track, mpeg_has_changed_track, mpeg_status, +#ifdef HAVE_LCD_BITMAP + font_get, +#endif }; int plugin_load(char* plugin, void* parameter) diff --git a/apps/plugin.h b/apps/plugin.h index e234506..f539c3e 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -46,7 +46,7 @@ #include "thread.h" /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 13 +#define PLUGIN_API_VERSION 14 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any @@ -231,6 +231,10 @@ struct plugin_api { struct mp3entry* (*mpeg_next_track)(void); bool (*mpeg_has_changed_track)(void); int (*mpeg_status)(void); + +#ifdef HAVE_LCD_BITMAP + struct font* (*font_get)(int font); +#endif }; /* defined by the plugin loader (plugin.c) */ |