summaryrefslogtreecommitdiffstats
path: root/apps/root_menu.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-03-27 06:38:11 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-03-27 06:38:11 +0000
commit91e726a1c1cec64bcae64480db731da57db93f10 (patch)
tree3edcdc1f8aa1a82b3ca029f5500a25ef0b466635 /apps/root_menu.h
parent40595bd57ac138e1f6240a619a29a76c51b11b35 (diff)
downloadrockbox-91e726a1c1cec64bcae64480db731da57db93f10.tar.gz
rockbox-91e726a1c1cec64bcae64480db731da57db93f10.tar.bz2
rockbox-91e726a1c1cec64bcae64480db731da57db93f10.zip
Move all valid menu return codes to a single file (root_menu.h) so we don't need to rely on GO_TO_ROOT == MENU_ATTACHED_USB.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12937 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/root_menu.h')
-rw-r--r--apps/root_menu.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/root_menu.h b/apps/root_menu.h
index e913a67b4a..4551b620fb 100644
--- a/apps/root_menu.h
+++ b/apps/root_menu.h
@@ -17,9 +17,16 @@
*
****************************************************************************/
#include "config.h"
+#ifndef __ROOT_MENU_H__
+#define __ROOT_MENU_H__
+
void root_menu(void);
enum {
+ /* from old menu api, but still required*/
+ MENU_ATTACHED_USB = -10,
+ MENU_SELECTED_EXIT = -9,
+
GO_TO_PREVIOUS_MUSIC = -4,
GO_TO_PREVIOUS_BROWSER = -3,
GO_TO_PREVIOUS = -2,
@@ -42,3 +49,5 @@ enum {
};
extern const struct menu_item_ex root_menu_;
+
+#endif /* __ROOT_MENU_H__ */