summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugin.c4
-rw-r--r--apps/plugin.h8
2 files changed, 4 insertions, 8 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 12bfe485e5..f9cef981bf 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -262,10 +262,7 @@ static const struct plugin_api rockbox_api = {
262 &button_queue, 262 &button_queue,
263#endif 263#endif
264 bidi_l2v, 264 bidi_l2v,
265#ifdef HAVE_LCD_BITMAP
266 is_diacritic, 265 is_diacritic,
267 get_codepage_name,
268#endif
269 font_get_bits, 266 font_get_bits,
270 font_load, 267 font_load,
271 font_unload, 268 font_unload,
@@ -275,6 +272,7 @@ static const struct plugin_api rockbox_api = {
275 screen_clear_area, 272 screen_clear_area,
276 gui_scrollbar_draw, 273 gui_scrollbar_draw,
277#endif /* HAVE_LCD_BITMAP */ 274#endif /* HAVE_LCD_BITMAP */
275 get_codepage_name,
278 276
279#ifdef HAVE_REMOTE_LCD 277#ifdef HAVE_REMOTE_LCD
280 /* remote lcd */ 278 /* remote lcd */
diff --git a/apps/plugin.h b/apps/plugin.h
index a83960b260..c737d7adeb 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -161,12 +161,12 @@ void* plugin_get_buffer(size_t *buffer_size);
161#define PLUGIN_MAGIC 0x526F634B /* RocK */ 161#define PLUGIN_MAGIC 0x526F634B /* RocK */
162 162
163/* increase this every time the api struct changes */ 163/* increase this every time the api struct changes */
164#define PLUGIN_API_VERSION 236 164#define PLUGIN_API_VERSION 237
165 165
166/* update this to latest version if a change to the api struct breaks 166/* update this to latest version if a change to the api struct breaks
167 backwards compatibility (and please take the opportunity to sort in any 167 backwards compatibility (and please take the opportunity to sort in any
168 new function which are "waiting" at the end of the function table) */ 168 new function which are "waiting" at the end of the function table) */
169#define PLUGIN_MIN_API_VERSION 236 169#define PLUGIN_MIN_API_VERSION 237
170 170
171/* plugin return codes */ 171/* plugin return codes */
172/* internal returns start at 0x100 to make exit(1..255) work */ 172/* internal returns start at 0x100 to make exit(1..255) work */
@@ -288,10 +288,7 @@ struct plugin_api {
288 struct event_queue *button_queue; 288 struct event_queue *button_queue;
289#endif 289#endif
290 unsigned short *(*bidi_l2v)( const unsigned char *str, int orientation ); 290 unsigned short *(*bidi_l2v)( const unsigned char *str, int orientation );
291#ifdef HAVE_LCD_BITMAP
292 bool (*is_diacritic)(const unsigned short char_code, bool *is_rtl); 291 bool (*is_diacritic)(const unsigned short char_code, bool *is_rtl);
293 const char* (*get_codepage_name)(int cp);
294#endif
295 const unsigned char *(*font_get_bits)( struct font *pf, unsigned short char_code ); 292 const unsigned char *(*font_get_bits)( struct font *pf, unsigned short char_code );
296 int (*font_load)(const char *path); 293 int (*font_load)(const char *path);
297 void (*font_unload)(int font_id); 294 void (*font_unload)(int font_id);
@@ -306,6 +303,7 @@ struct plugin_api {
306 int min_shown, int max_shown, 303 int min_shown, int max_shown,
307 unsigned flags); 304 unsigned flags);
308#endif /* HAVE_LCD_BITMAP */ 305#endif /* HAVE_LCD_BITMAP */
306 const char* (*get_codepage_name)(int cp);
309 307
310#ifdef HAVE_REMOTE_LCD 308#ifdef HAVE_REMOTE_LCD
311 /* remote lcd */ 309 /* remote lcd */