summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-09-22 08:54:48 +0000
committerDave Chapman <dave@dchapman.com>2005-09-22 08:54:48 +0000
commit548c1b72c00087364c8c5ccec354a9ede1724d45 (patch)
tree873c4b5b56fec0b21a6214a5817b5b0d6ef2c697 /apps/plugin.h
parent6afb017642a82aabbcd6f4ea5c31ec5d3945f5f8 (diff)
downloadrockbox-548c1b72c00087364c8c5ccec354a9ede1724d45.tar.gz
rockbox-548c1b72c00087364c8c5ccec354a9ede1724d45.zip
Added menu interface to plugin API - needed by Sudoku
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7533 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h18
1 files changed, 17 insertions, 1 deletions
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);