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 */