From 5cd393c772ce6d9f8f7eff5dc97b007b8249d9f6 Mon Sep 17 00:00:00 2001 From: Kjell Ericson Date: Wed, 29 Jan 2003 08:26:11 +0000 Subject: New onplay-menu for the Player. The menu_run() function is split into two functions, where the new menu_run() works like before, and the new function menu_show() returns the menu item number you selected. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3180 a1c6a512-1295-4272-9138-f99709370657 --- apps/menu.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'apps/menu.h') diff --git a/apps/menu.h b/apps/menu.h index a21d07a7ee..632db87e4b 100644 --- a/apps/menu.h +++ b/apps/menu.h @@ -32,6 +32,14 @@ void menu_exit(int menu); void put_cursorxy(int x, int y, bool on); + /* Returns below define, or number of selected menu item*/ +int menu_show(int m); +#define MENU_ATTACHED_USB -1 +#define MENU_SELECTED_EXIT -2 + bool menu_run(int menu); #endif /* End __MENU_H__ */ + + + -- cgit v1.2.3