summaryrefslogtreecommitdiff
path: root/apps/menu.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menu.h')
-rw-r--r--apps/menu.h12
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
25typedef 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
25struct menu_items { 32struct menu_items {
26 char *desc; 33 char *desc;
27 void (*function) (void); 34 Menu (*function) (void);
28}; 35};
29 36
30int menu_init(struct menu_items* items, int count); 37int menu_init(struct menu_items* items, int count);
31void menu_exit(int menu); 38void menu_exit(int menu);
32void menu_run(int menu);
33 39
34void put_cursorxy(int x, int y, bool on); 40void put_cursorxy(int x, int y, bool on);
35 41
42Menu menu_run(int menu);
43
36#endif /* End __MENU_H__ */ 44#endif /* End __MENU_H__ */