summaryrefslogtreecommitdiffstats
path: root/apps/menu.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-04-30 13:41:33 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-04-30 13:41:33 +0000
commit3a7760c3e2691d0367f5c0b5585fd885b99c6693 (patch)
tree56ec621f648094478a81110eb75a8ec6e37d0907 /apps/menu.h
parenta05bb26233c368d7670bc150f3a0597fe91501f2 (diff)
downloadrockbox-3a7760c3e2691d0367f5c0b5585fd885b99c6693.tar.gz
rockbox-3a7760c3e2691d0367f5c0b5585fd885b99c6693.zip
Convert onplay.c to the new manu API. only plugins are still using the old API now
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13294 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menu.h')
-rw-r--r--apps/menu.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/menu.h b/apps/menu.h
index a86155374e..3d1bd43cb3 100644
--- a/apps/menu.h
+++ b/apps/menu.h
@@ -53,13 +53,14 @@ struct menu_func {
/* these next two are mutually exclusive */
#define MENU_HAS_DESC 0x10
#define MENU_DYNAMIC_DESC 0x20
+#define MENU_EXITAFTERTHISMENU 0x40
/* Flags for MT_FUNCTION_CALL */
-#define MENU_FUNC_USEPARAM 0x40
-#define MENU_FUNC_CHECK_RETVAL 0x80
+#define MENU_FUNC_USEPARAM 0x80
+#define MENU_FUNC_CHECK_RETVAL 0x100
#define MENU_COUNT_MASK 0xFFF
-#define MENU_COUNT_SHIFT 8
+#define MENU_COUNT_SHIFT 12
#define MENU_ITEM_COUNT(c) ((c&MENU_COUNT_MASK)<<MENU_COUNT_SHIFT)
#define MENU_GET_COUNT(flags) ((flags>>MENU_COUNT_SHIFT)&MENU_COUNT_MASK)