1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
/****** MESSAGING MENU ******/
struct menu menu_message_compose = {
.title = "Compose",
.help = "Write a new text message."
};
struct menu menu_message_inbox = {
.title = "Inbox",
.help = "Incoming text messages"
};
struct menu menu_message_outbox = {
.title = "Outbox",
.help = "Outgoing text messages"
};
struct menu menu_message_sent = {
.title = "Sent",
.help = "Previously sent text messages"
};
struct menu menu_messages = {
.title = "Messages",
.help = "Short message service options",
.children = {
[0] = &menu_message_compose,
[1] = &menu_message_inbox,
[2] = &menu_message_outbox,
[3] = &menu_message_sent
}
};
/****** NETWORK MENU ******/
struct menu menu_network_about = {
.title = "About this network",
.help = "Information about your current network",
};
struct menu menu_network = {
.title = "Network",
.help = "Network interaction options",
.children = {
}
};
/****** SETTINGS MENU ******/
struct menu menu_settings = {
.title = "Settings",
.help = "Configure your phone",
.children = {
}
};
/****** MAIN MENU ******/
struct menu menu_about = {
.title = "About",
.help = "Information about this phone",
};
struct menu menu_main = {
.title = "Main Menu",
.children = {
[0] = &menu_messages,
[7] = &menu_network,
[8] = &menu_settings,
[9] = &menu_about,
},
};
int
main(void) {
&menu_main;
return 0;
};
|