[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 4/5] HMP: move define of mon_cmds
From: |
Luiz Capitulino |
Subject: |
[Qemu-devel] [PULL 4/5] HMP: move define of mon_cmds |
Date: |
Thu, 17 Jan 2013 13:12:29 -0200 |
From: Wenchao Xia <address@hidden>
Because mon_cmds may use info_cmds, so adjust the declare sequence
of them.
Signed-off-by: Wenchao Xia <address@hidden>
Signed-off-by: Luiz Capitulino <address@hidden>
---
monitor.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/monitor.c b/monitor.c
index a77dd3b..ef1b7ac 100644
--- a/monitor.c
+++ b/monitor.c
@@ -2433,12 +2433,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[] = {
{
@@ -2752,6 +2746,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.8.1.GIT
- [Qemu-devel] [PULL 0/5] QMP queue, Luiz Capitulino, 2013/01/17
- [Qemu-devel] [PULL 2/5] HMP: delete info handler, Luiz Capitulino, 2013/01/17
- [Qemu-devel] [PULL 1/5] HMP: add QDict to info callback handler, Luiz Capitulino, 2013/01/17
- [Qemu-devel] [PULL 3/5] HMP: add infrastructure for sub command, Luiz Capitulino, 2013/01/17
- [Qemu-devel] [PULL 4/5] HMP: move define of mon_cmds,
Luiz Capitulino <=
- [Qemu-devel] [PULL 5/5] HMP: add sub command table to info, Luiz Capitulino, 2013/01/17
- Re: [Qemu-devel] [PULL 0/5] QMP queue, Anthony Liguori, 2013/01/20