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:
parent
2da8f69c95
commit
06e6acd6cd
2 changed files with 12 additions and 1 deletions
|
@ -66,6 +66,7 @@
|
|||
#include "peakmeter.h"
|
||||
#include "widgets.h"
|
||||
#include "bmp.h"
|
||||
#include "bidi.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
|
@ -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)
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue