Browse Source

Force ordering of commands in help list.

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
cef551376f
1 changed files with 14 additions and 13 deletions
  1. 14
    13
      src/hci/commands/ifmgmt_cmd.c

+ 14
- 13
src/hci/commands/ifmgmt_cmd.c View File

143
 	return ifcommon_exec ( ifopen_payload, "Open", argc, argv );
143
 	return ifcommon_exec ( ifopen_payload, "Open", argc, argv );
144
 }
144
 }
145
 
145
 
146
-struct command ifopen_command __command = {
147
-	.name = "ifopen",
148
-	.exec = ifopen_exec,
149
-};
150
-
151
 /* "ifclose" command */
146
 /* "ifclose" command */
152
 
147
 
153
 static int ifclose_payload ( struct net_device *netdev ) {
148
 static int ifclose_payload ( struct net_device *netdev ) {
159
 	return ifcommon_exec ( ifclose_payload, "Close", argc, argv );
154
 	return ifcommon_exec ( ifclose_payload, "Close", argc, argv );
160
 }
155
 }
161
 
156
 
162
-struct command ifclose_command __command = {
163
-	.name = "ifclose",
164
-	.exec = ifclose_exec,
165
-};
166
-
167
 /* "ifstat" command */
157
 /* "ifstat" command */
168
 
158
 
169
 static int ifstat_payload ( struct net_device *netdev ) {
159
 static int ifstat_payload ( struct net_device *netdev ) {
176
 			       argc, argv );
166
 			       argc, argv );
177
 }
167
 }
178
 
168
 
179
-struct command ifstat_command __command = {
180
-	.name = "ifstat",
181
-	.exec = ifstat_exec,
169
+/** Interface management commands */
170
+struct command ifmgmt_commands[] __command = {
171
+	{
172
+		.name = "ifopen",
173
+		.exec = ifopen_exec,
174
+	},
175
+	{
176
+		.name = "ifclose",
177
+		.exec = ifclose_exec,
178
+	},
179
+	{
180
+		.name = "ifstat",
181
+		.exec = ifstat_exec,
182
+	},
182
 };
183
 };

Loading…
Cancel
Save