diff options
Diffstat (limited to 'apps/menu.h')
-rw-r--r-- | apps/menu.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/menu.h b/apps/menu.h index 0871e502c8..fc962c79aa 100644 --- a/apps/menu.h +++ b/apps/menu.h | |||
@@ -22,15 +22,23 @@ | |||
22 | 22 | ||
23 | #include <stdbool.h> | 23 | #include <stdbool.h> |
24 | 24 | ||
25 | typedef enum { | ||
26 | MENU_OK, | ||
27 | MENU_REFRESH_DIR, /* any file/directory contents need to be re-read */ | ||
28 | MENU_LAST /* don't use as return code, only for number of return codes | ||
29 | available */ | ||
30 | } Menu; | ||
31 | |||
25 | struct menu_items { | 32 | struct menu_items { |
26 | char *desc; | 33 | char *desc; |
27 | void (*function) (void); | 34 | Menu (*function) (void); |
28 | }; | 35 | }; |
29 | 36 | ||
30 | int menu_init(struct menu_items* items, int count); | 37 | int menu_init(struct menu_items* items, int count); |
31 | void menu_exit(int menu); | 38 | void menu_exit(int menu); |
32 | void menu_run(int menu); | ||
33 | 39 | ||
34 | void put_cursorxy(int x, int y, bool on); | 40 | void put_cursorxy(int x, int y, bool on); |
35 | 41 | ||
42 | Menu menu_run(int menu); | ||
43 | |||
36 | #endif /* End __MENU_H__ */ | 44 | #endif /* End __MENU_H__ */ |