summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Cellerier <dionoea@videolan.org>2006-07-19 19:47:34 +0000
committerAntoine Cellerier <dionoea@videolan.org>2006-07-19 19:47:34 +0000
commit06e6acd6cd2e9760eedcb56615c358efb2675f52 (patch)
treeca27ef2222dd1faa18bba0a37699f4d652bb501d
parent2da8f69c95cce7726ae4c0a41ce04bf42fff65df (diff)
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
-rw-r--r--apps/plugin.c8
-rw-r--r--apps/plugin.h5
2 files changed, 12 insertions, 1 deletions
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 */