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
This commit is contained in:
Antoine Cellerier 2006-07-19 19:47:34 +00:00
parent 2da8f69c95
commit 06e6acd6cd
2 changed files with 12 additions and 1 deletions

View file

@ -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)

View file

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