From b0fee17d6e1a463dcd84568e5997663b69488998 Mon Sep 17 00:00:00 2001 From: Marcoen Hirschberg Date: Tue, 6 Dec 2005 13:27:15 +0000 Subject: waiting is over: initial unicode commit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8169 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'apps/plugin.h') 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); -- cgit v1.1