diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-03-07 13:00:46 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-03-07 13:00:46 +0000 |
commit | 3452146217cbb8bac3c836aa8033160a1f5a5da8 (patch) | |
tree | 416935e8b2cc5d51a70eb411ce7f0c402b290ff5 /apps/plugin.h | |
parent | c70d51398329c56754899cc4be483f4478a93aa8 (diff) | |
download | rockbox-3452146217cbb8bac3c836aa8033160a1f5a5da8.tar.gz rockbox-3452146217cbb8bac3c836aa8033160a1f5a5da8.zip |
Make the old menu aPI use the new API. Both are avialable to core and
rocks, but use the new API unless you absolutly have to use the old one
(and file a FS bug if you do)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12670 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 62ede9bce8..c14b06f487 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -110,12 +110,12 @@ | |||
110 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 110 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
111 | 111 | ||
112 | /* increase this every time the api struct changes */ | 112 | /* increase this every time the api struct changes */ |
113 | #define PLUGIN_API_VERSION 46 | 113 | #define PLUGIN_API_VERSION 47 |
114 | 114 | ||
115 | /* update this to latest version if a change to the api struct breaks | 115 | /* update this to latest version if a change to the api struct breaks |
116 | backwards compatibility (and please take the opportunity to sort in any | 116 | backwards compatibility (and please take the opportunity to sort in any |
117 | new function which are "waiting" at the end of the function table) */ | 117 | new function which are "waiting" at the end of the function table) */ |
118 | #define PLUGIN_MIN_API_VERSION 46 | 118 | #define PLUGIN_MIN_API_VERSION 47 |
119 | 119 | ||
120 | /* plugin return codes */ | 120 | /* plugin return codes */ |
121 | enum plugin_status { | 121 | enum plugin_status { |
@@ -465,19 +465,15 @@ struct plugin_api { | |||
465 | #endif | 465 | #endif |
466 | 466 | ||
467 | /* menu */ | 467 | /* menu */ |
468 | int (*do_menu)(const struct menu_item_ex *menu, int *start_selected); | ||
469 | /* OLD API - dont use unless you have to */ | ||
468 | int (*menu_init)(const struct menu_item* mitems, int count, | 470 | int (*menu_init)(const struct menu_item* mitems, int count, |
469 | int (*callback)(int, int), | 471 | int (*callback)(int, int), |
470 | const char *button1, const char *button2, const char *button3); | 472 | const char *button1, const char *button2, const char *button3); |
471 | void (*menu_exit)(int menu); | 473 | void (*menu_exit)(int menu); |
472 | int (*menu_show)(int m); | 474 | int (*menu_show)(int m); |
473 | bool (*menu_run)(int menu); | 475 | bool (*menu_run)(int menu); |
474 | int (*menu_cursor)(int menu); | ||
475 | char* (*menu_description)(int menu, int position); | ||
476 | void (*menu_delete)(int menu, int position); | ||
477 | int (*menu_count)(int menu); | 476 | int (*menu_count)(int menu); |
478 | void (*menu_draw)(int menu); | ||
479 | void (*menu_insert)(int menu, int position, char *desc, bool (*function) (void)); | ||
480 | void (*menu_set_cursor)(int menu, int position); | ||
481 | 477 | ||
482 | bool (*set_option)(const char* string, void* variable, | 478 | bool (*set_option)(const char* string, void* variable, |
483 | enum optiontype type, const struct opt_items* options, | 479 | enum optiontype type, const struct opt_items* options, |