From: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
To: qemu-devel@nongnu.org
Cc: aliguori@us.ibm.com, chenwj@iis.sinica.edu.tw, armbru@redhat.com,
lcapitulino@redhat.com, pbonzini@redhat.com,
Wenchao Xia <xiawenc@linux.vnet.ibm.com>
Subject: [Qemu-devel] [PATCH V3 3/4] HMP: move define of mon_cmds
Date: Thu, 27 Dec 2012 17:40:26 +0800 [thread overview]
Message-ID: <1356601227-8707-4-git-send-email-xiawenc@linux.vnet.ibm.com> (raw)
In-Reply-To: <1356601227-8707-1-git-send-email-xiawenc@linux.vnet.ibm.com>
Because mon_cmds may use info_cmds, so adjust the declare sequence
of them.
Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
---
monitor.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/monitor.c b/monitor.c
index e4d4c59..a392df4 100644
--- a/monitor.c
+++ b/monitor.c
@@ -2422,12 +2422,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[] = {
{
@@ -2741,6 +2735,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
next prev parent reply other threads:[~2012-12-27 9:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-27 9:40 [Qemu-devel] [PATCH V3 0/4] HMP: allow parsing for sub command Wenchao Xia
2012-12-27 9:40 ` [Qemu-devel] [PATCH V3 1/4] HMP: add QDict to info callback handler Wenchao Xia
2012-12-27 9:40 ` [Qemu-devel] [PATCH V3 2/4] HMP: add infrastructure for sub command Wenchao Xia
2013-01-09 12:57 ` Luiz Capitulino
2013-01-10 3:30 ` Wenchao Xia
2013-01-10 7:07 ` wenchao xia
2013-01-10 9:23 ` Markus Armbruster
2012-12-27 9:40 ` Wenchao Xia [this message]
2012-12-27 9:40 ` [Qemu-devel] [PATCH V3 4/4] HMP: add sub command table to info Wenchao Xia
2013-01-04 3:00 ` [Qemu-devel] [PATCH V3 0/4] HMP: allow parsing for sub command Wenchao Xia
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1356601227-8707-4-git-send-email-xiawenc@linux.vnet.ibm.com \
--to=xiawenc@linux.vnet.ibm.com \
--cc=aliguori@us.ibm.com \
--cc=armbru@redhat.com \
--cc=chenwj@iis.sinica.edu.tw \
--cc=lcapitulino@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).