From 2cf4f470053cf69f627943101a05e802195bc07b Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Thu, 20 May 2004 08:06:15 +0000 Subject: Preparation for grayscale font support git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4653 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 3 +++ apps/plugin.h | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 = { 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 e2345069ad..f539c3ef3a 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) */ -- cgit v1.2.3