summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugin.c14
-rw-r--r--apps/plugin.h18
2 files changed, 31 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 7d3b13c726..6748a19355 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -341,6 +341,20 @@ static const struct plugin_api rockbox_api = {
341 341
342 /* new stuff at the end, sort into place next time 342 /* new stuff at the end, sort into place next time
343 the API gets incompatible */ 343 the API gets incompatible */
344
345 menu_init,
346 menu_exit,
347 menu_show,
348 menu_run,
349 menu_cursor,
350 menu_description,
351 menu_delete,
352 menu_count,
353 menu_moveup,
354 menu_movedown,
355 menu_draw,
356 menu_insert,
357 menu_set_cursor,
344}; 358};
345 359
346int plugin_load(const char* plugin, void* parameter) 360int plugin_load(const char* plugin, void* parameter)
diff --git a/apps/plugin.h b/apps/plugin.h
index 5cc9c1b58a..f133d325a5 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -56,6 +56,7 @@
56#include "widgets.h" 56#include "widgets.h"
57#endif 57#endif
58#include "sound.h" 58#include "sound.h"
59#include "menu.h"
59 60
60#ifdef HAVE_REMOTE_LCD 61#ifdef HAVE_REMOTE_LCD
61#include "lcd-remote.h" 62#include "lcd-remote.h"
@@ -426,7 +427,22 @@ struct plugin_api {
426 427
427 /* new stuff at the end, sort into place next time 428 /* new stuff at the end, sort into place next time
428 the API gets incompatible */ 429 the API gets incompatible */
429 430
431 int (*menu_init)(const struct menu_item* mitems, int count,
432 int (*callback)(int, int),
433 const char *button1, const char *button2, const char *button3);
434 void (*menu_exit)(int menu);
435 int (*menu_show)(int m);
436 bool (*menu_run)(int menu);
437 int (*menu_cursor)(int menu);
438 char* (*menu_description)(int menu, int position);
439 void (*menu_delete)(int menu, int position);
440 int (*menu_count)(int menu);
441 bool (*menu_moveup)(int menu);
442 bool (*menu_movedown)(int menu);
443 void (*menu_draw)(int menu);
444 void (*menu_insert)(int menu, int position, char *desc, bool (*function) (void));
445 void (*menu_set_cursor)(int menu, int position);
430}; 446};
431 447
432int plugin_load(const char* plugin, void* parameter); 448int plugin_load(const char* plugin, void* parameter);