From 06e6acd6cd2e9760eedcb56615c358efb2675f52 Mon Sep 17 00:00:00 2001 From: Antoine Cellerier Date: Wed, 19 Jul 2006 19:47:34 +0000 Subject: Export bidi_l2v, font_get_bits and font_load in plugin API (on bitmap LCD targets) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10255 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 8 +++++++- apps/plugin.h | 5 +++++ 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/plugin.c b/apps/plugin.c index 6a91ce9688..e7909f764b 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -66,6 +66,7 @@ #include "peakmeter.h" #include "widgets.h" #include "bmp.h" +#include "bidi.h" #endif #ifdef HAVE_REMOTE_LCD @@ -439,7 +440,7 @@ static const struct plugin_api rockbox_api = { lcd_setmargins, #endif utf8seek, - + set_int, reload_directory, set_bool, @@ -448,6 +449,11 @@ static const struct plugin_api rockbox_api = { #else {&screens[SCREEN_MAIN]}, #endif +#ifdef HAVE_LCD_BITMAP + bidi_l2v, + font_get_bits, + font_load, +#endif }; int plugin_load(const char* plugin, void* parameter) diff --git a/apps/plugin.h b/apps/plugin.h index 1429e83847..cd33ce529d 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -524,6 +524,11 @@ struct plugin_api { void (*reload_directory)(void); bool (*set_bool)(const char* string, bool* variable ); struct screen* screens[NB_SCREENS]; +#ifdef HAVE_LCD_BITMAP + unsigned short *(*bidi_l2v)( const unsigned char *str, int orientation ); + const unsigned char *(*font_get_bits)( struct font *pf, unsigned short char_code ); + struct font* (*font_load)(const char *path); +#endif }; /* plugin header */ -- cgit v1.2.3