Browse Source

Force ordering of commands within help list.

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
f396f1f9d3
1 changed files with 13 additions and 13 deletions
  1. 13
    13
      src/hci/commands/nvo_cmd.c

+ 13
- 13
src/hci/commands/nvo_cmd.c View File

38
 	return 0;
38
 	return 0;
39
 }
39
 }
40
 
40
 
41
-struct command show_command __command = {
42
-	.name = "show",
43
-	.exec = show_exec,
44
-};
45
-
46
 static int set_exec ( int argc, char **argv ) {
41
 static int set_exec ( int argc, char **argv ) {
47
 	struct config_context dummy_context;
42
 	struct config_context dummy_context;
48
 	int rc;
43
 	int rc;
74
 	return 0;
69
 	return 0;
75
 }
70
 }
76
 
71
 
77
-struct command set_command __command = {
78
-	.name = "set",
79
-	.exec = set_exec,
80
-};
81
-
82
 static int clear_exec ( int argc, char **argv ) {
72
 static int clear_exec ( int argc, char **argv ) {
83
 	struct config_context dummy_context;
73
 	struct config_context dummy_context;
84
 	int rc;
74
 	int rc;
104
 	return 0;
94
 	return 0;
105
 }
95
 }
106
 
96
 
107
-struct command clear_command __command = {
108
-	.name = "clear",
109
-	.exec = clear_exec,
97
+struct command nvo_commands[] __command = {
98
+	{
99
+		.name = "show",
100
+		.exec = show_exec,
101
+	},
102
+	{
103
+		.name = "set",
104
+		.exec = set_exec,
105
+	},	
106
+	{
107
+		.name = "clear",
108
+		.exec = clear_exec,
109
+	},
110
 };
110
 };

Loading…
Cancel
Save