blob: d9cc97b33e2c39080009cf4ed21912ea2c32d08f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/**
* Menus - menus and menu items
*
* We represent both menus and menu items in a single structure.
*
* They share the properties of having a title as well as having
* interaction callbacks such as on_select.
*
* Menus have a child item array that is indexed by menu position.
* The position of items in this array is used for numeric menu navigation.
*
*/
struct menu {
const char *title;
void (*on_select)(void);
struct menu *children[10];
};
|