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 9ac9f85915..c7758afbcf 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -210,6 +210,9 @@ static struct plugin_api rockbox_api = { | |||
210 | mpeg_next_track, | 210 | mpeg_next_track, |
211 | mpeg_has_changed_track, | 211 | mpeg_has_changed_track, |
212 | mpeg_status, | 212 | mpeg_status, |
213 | #ifdef HAVE_LCD_BITMAP | ||
214 | font_get, | ||
215 | #endif | ||
213 | }; | 216 | }; |
214 | 217 | ||
215 | int plugin_load(char* plugin, void* parameter) | 218 | int plugin_load(char* plugin, void* parameter) |
diff --git a/apps/plugin.h b/apps/plugin.h index e2345069ad..f539c3ef3a 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -46,7 +46,7 @@ | |||
46 | #include "thread.h" | 46 | #include "thread.h" |
47 | 47 | ||
48 | /* increase this every time the api struct changes */ | 48 | /* increase this every time the api struct changes */ |
49 | #define PLUGIN_API_VERSION 13 | 49 | #define PLUGIN_API_VERSION 14 |
50 | 50 | ||
51 | /* update this to latest version if a change to the api struct breaks | 51 | /* update this to latest version if a change to the api struct breaks |
52 | backwards compatibility (and please take the opportunity to sort in any | 52 | backwards compatibility (and please take the opportunity to sort in any |
@@ -231,6 +231,10 @@ struct plugin_api { | |||
231 | struct mp3entry* (*mpeg_next_track)(void); | 231 | struct mp3entry* (*mpeg_next_track)(void); |
232 | bool (*mpeg_has_changed_track)(void); | 232 | bool (*mpeg_has_changed_track)(void); |
233 | int (*mpeg_status)(void); | 233 | int (*mpeg_status)(void); |
234 | |||
235 | #ifdef HAVE_LCD_BITMAP | ||
236 | struct font* (*font_get)(int font); | ||
237 | #endif | ||
234 | }; | 238 | }; |
235 | 239 | ||
236 | /* defined by the plugin loader (plugin.c) */ | 240 | /* defined by the plugin loader (plugin.c) */ |