12345678910111213141516171819202122232425262728293031323334353637 |
-
-
- #ifndef __MENU_H__
- #define __MENU_H__
-
- #define MENU_MAX_LINES 5
- #define MENU_MAX_LEN (MENU_MAX_LINES * 32)
-
- struct menu_state {
- int off;
- int selection;
- int length;
- char *buff;
- };
-
- void menu_init(void (*enter)(int), void (*exit)(void));
- void menu_deinit(void);
-
- void menu_run(void (*cb)(struct menu_state *));
-
- #endif // __MENU_H__
|