summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2014-02-13 22:01:13 +1100
committerJonathan Gordon <rockbox@jdgordon.info>2014-02-13 22:11:23 +1100
commit6dbfd44b6e6a4e01066ff3a99748e586d7cd458a (patch)
tree0570c0dbe96277cb8e31a6797b3b8628aea1e5b0 /apps/plugin.h
parent1210de217ebdbd35734f57d82a6e935ef60e6555 (diff)
downloadrockbox-6dbfd44b6e6a4e01066ff3a99748e586d7cd458a.tar.gz
rockbox-6dbfd44b6e6a4e01066ff3a99748e586d7cd458a.zip
main_menu_config: New plugin to configur the main menu order
Plugins/Applications/main_menu_config allows you to edit the main menu order without having to manually edit config.cfg. Press the standard OK button to access the internal menu which allows you to move items up/down in the order and toggle their visibility. Exit via this menu to have the order saved. (Suggestions welcome to improve this UI) Change-Id: I59715ef1ca265aeb6f9666ef27026bc1093f2579
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 1d1e9ee26e..0e0580501d 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -68,6 +68,7 @@ void* plugin_get_buffer(size_t *buffer_size);
68#include "mpeg.h" 68#include "mpeg.h"
69#include "audio.h" 69#include "audio.h"
70#include "mp3_playback.h" 70#include "mp3_playback.h"
71#include "root_menu.h"
71#include "talk.h" 72#include "talk.h"
72#ifdef RB_PROFILE 73#ifdef RB_PROFILE
73#include "profile.h" 74#include "profile.h"
@@ -964,6 +965,11 @@ struct plugin_api {
964#endif 965#endif
965 966
966 const char *rbversion; 967 const char *rbversion;
968 struct menu_table *(*root_menu_get_options)(int *nb_options);
969 void (*root_menu_set_default)(void* setting, void* defaultval);
970 char* (*root_menu_write_to_cfg)(void* setting, char*buf, int buf_len);
971 void (*root_menu_load_from_cfg)(void* setting, char *value);
972 int (*settings_save)(void);
967 973
968 /* new stuff at the end, sort into place next time 974 /* new stuff at the end, sort into place next time
969 the API gets incompatible */ 975 the API gets incompatible */