summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorMarcoen Hirschberg <marcoen@gmail.com>2005-12-06 13:27:15 +0000
committerMarcoen Hirschberg <marcoen@gmail.com>2005-12-06 13:27:15 +0000
commitb0fee17d6e1a463dcd84568e5997663b69488998 (patch)
treefffce775c4d1636a8bbc9e97669aa99b9378fc15 /apps/plugin.h
parent01917ec9809f1abff87cb372b700fc09476d343e (diff)
downloadrockbox-b0fee17d6e1a463dcd84568e5997663b69488998.zip
rockbox-b0fee17d6e1a463dcd84568e5997663b69488998.tar.gz
rockbox-b0fee17d6e1a463dcd84568e5997663b69488998.tar.bz2
rockbox-b0fee17d6e1a463dcd84568e5997663b69488998.tar.xz
waiting is over: initial unicode commit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8169 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 92f1d4e..66ef0a3 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -57,6 +57,7 @@
#endif
#include "sound.h"
#include "menu.h"
+#include "rbunicode.h"
#ifdef HAVE_REMOTE_LCD
#include "lcd-remote.h"
@@ -90,7 +91,7 @@
#endif
/* increase this every time the api struct changes */
-#define PLUGIN_API_VERSION 52
+#define PLUGIN_API_VERSION 53
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
@@ -441,7 +442,14 @@ struct plugin_api {
#ifdef HAVE_LCD_BITMAP
void (*screen_dump_set_hook)(void (*hook)(int fh));
-#endif
+ int (*font_get_width)(struct font* pf, unsigned short char_code);
+#endif
+ const unsigned char* (*utf8decode)(const unsigned char *utf8, unsigned short *ucs);
+ unsigned char* (*iso_decode)(const unsigned char *iso, unsigned char *utf8, int cp, int count);
+ unsigned char* (*utf16LEdecode)(const unsigned char *utf16, unsigned char *utf8, unsigned int count);
+ unsigned char* (*utf16BEdecode)(const unsigned char *utf16, unsigned char *utf8, unsigned int count);
+ unsigned char* (*utf8encode)(unsigned long ucs, unsigned char *utf8);
+ unsigned long (*utf8length)(const unsigned char *utf8);
};
int plugin_load(const char* plugin, void* parameter);