[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH V6 4/5] HMP: move define of mon_cmds
From: |
Wenchao Xia |
Subject: |
[Qemu-devel] [PATCH V6 4/5] HMP: move define of mon_cmds |
Date: |
Mon, 14 Jan 2013 14:06:28 +0800 |
Because mon_cmds may use info_cmds, so adjust the declare sequence
of them.
Signed-off-by: Wenchao Xia <address@hidden>
---
monitor.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/monitor.c b/monitor.c
index 6f470bf..d3225c2 100644
--- a/monitor.c
+++ b/monitor.c
@@ -2425,12 +2425,6 @@ int monitor_handle_fd_param(Monitor *mon, const char
*fdname)
return fd;
}
-/* mon_cmds and info_cmds would be sorted at runtime */
-static mon_cmd_t mon_cmds[] = {
-#include "hmp-commands.h"
- { NULL, NULL, },
-};
-
/* Please update hmp-commands.hx when adding or changing commands */
static mon_cmd_t info_cmds[] = {
{
@@ -2744,6 +2738,12 @@ static mon_cmd_t info_cmds[] = {
},
};
+/* mon_cmds and info_cmds would be sorted at runtime */
+static mon_cmd_t mon_cmds[] = {
+#include "hmp-commands.h"
+ { NULL, NULL, },
+};
+
static const mon_cmd_t qmp_cmds[] = {
#include "qmp-commands-old.h"
{ /* NULL */ },
--
1.7.1
- [Qemu-devel] [PATCH V6 0/5] HMP: allow parsing for sub command, Wenchao Xia, 2013/01/14
- [Qemu-devel] [PATCH V6 1/5] HMP: add QDict to info callback handler, Wenchao Xia, 2013/01/14
- [Qemu-devel] [PATCH V6 4/5] HMP: move define of mon_cmds,
Wenchao Xia <=
- [Qemu-devel] [PATCH V6 3/5] HMP: add infrastructure for sub command, Wenchao Xia, 2013/01/14
- [Qemu-devel] [PATCH V6 5/5] HMP: add sub command table to info, Wenchao Xia, 2013/01/14
- [Qemu-devel] [PATCH V6 2/5] HMP: delete info handler, Wenchao Xia, 2013/01/14
- Re: [Qemu-devel] [PATCH V6 0/5] HMP: allow parsing for sub command, Luiz Capitulino, 2013/01/14