From 6dbfd44b6e6a4e01066ff3a99748e586d7cd458a Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Thu, 13 Feb 2014 22:01:13 +1100 Subject: 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 --- apps/plugin.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/plugin.h') 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); #include "mpeg.h" #include "audio.h" #include "mp3_playback.h" +#include "root_menu.h" #include "talk.h" #ifdef RB_PROFILE #include "profile.h" @@ -964,6 +965,11 @@ struct plugin_api { #endif const char *rbversion; + struct menu_table *(*root_menu_get_options)(int *nb_options); + void (*root_menu_set_default)(void* setting, void* defaultval); + char* (*root_menu_write_to_cfg)(void* setting, char*buf, int buf_len); + void (*root_menu_load_from_cfg)(void* setting, char *value); + int (*settings_save)(void); /* new stuff at the end, sort into place next time the API gets incompatible */ -- cgit v1.2.3