Patchwork [14/25] Monitor: Move qmp_query_status() up in monitor.c

login
register
mail settings
Submitter Luiz Capitulino
Date Dec. 6, 2010, 6:24 p.m.
Message ID <1291659852-23028-15-git-send-email-lcapitulino@redhat.com>
Download mbox | patch
Permalink /patch/74439/
State New
Headers show

Comments

Luiz Capitulino - Dec. 6, 2010, 6:24 p.m.
So that next commit can change do_info_status_print() to use it.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 monitor.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

Patch

diff --git a/monitor.c b/monitor.c
index 4286375..731cb35 100644
--- a/monitor.c
+++ b/monitor.c
@@ -2137,6 +2137,12 @@  static void do_inject_nmi(Monitor *mon, const QDict *qdict)
 }
 #endif
 
+static void qmp_query_status(Monitor *mon, QObject **ret_data)
+{
+    *ret_data = qobject_from_jsonf("{ 'running': %i, 'singlestep': %i }",
+                                    vm_running, singlestep);
+}
+
 static void do_info_status_print(Monitor *mon, const QObject *data)
 {
     QDict *qdict;
@@ -2156,12 +2162,6 @@  static void do_info_status_print(Monitor *mon, const QObject *data)
     monitor_printf(mon, "\n");
 }
 
-static void qmp_query_status(Monitor *mon, QObject **ret_data)
-{
-    *ret_data = qobject_from_jsonf("{ 'running': %i, 'singlestep': %i }",
-                                    vm_running, singlestep);
-}
-
 static qemu_acl *find_acl(Monitor *mon, const char *name)
 {
     qemu_acl *acl = qemu_acl_find(name);