1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2007 Jonathan Gordon
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
21 #ifndef __ROOT_MENU_H__
22 #define __ROOT_MENU_H__
25 #include "gcc_extensions.h"
27 void root_menu(void) NORETURN_ATTR
;
30 /* from old menu api, but still required*/
31 MENU_ATTACHED_USB
= -10,
32 MENU_SELECTED_EXIT
= -9,
34 GO_TO_ROOTITEM_CONTEXT
= -5,
35 GO_TO_PREVIOUS_MUSIC
= -4,
36 GO_TO_PREVIOUS_BROWSER
= -3,
39 GO_TO_FILEBROWSER
= 0,
53 /* Do Not add any items above here unless you want it to be able to
54 be the "start screen" after a boot up. The setting in settings_list.c
55 will need editing if this is the case. */
58 GO_TO_PLAYLISTS_SCREEN
,
59 GO_TO_PLAYLIST_VIEWER
,
64 extern struct menu_item_ex root_menu_
;
66 extern void previous_music_is_wps(void);
68 void root_menu_load_from_cfg(void* setting
, char *value
);
69 char* root_menu_write_to_cfg(void* setting
, char*buf
, int buf_len
);
70 void root_menu_set_default(void* setting
, void* defaultval
);
71 bool root_menu_is_changed(void* setting
, void* defaultval
);
75 #endif /* __ROOT_MENU_H__ */