Patchwork [20/25] Monitor: Move qmp_query_uuid() up in monitor.c

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

Comments

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

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

Patch

diff --git a/monitor.c b/monitor.c
index 2d1f183..e9b07f3 100644
--- a/monitor.c
+++ b/monitor.c
@@ -806,11 +806,6 @@  static void qmp_query_commands(Monitor *mon, QObject **ret_data)
     *ret_data = QOBJECT(cmd_list);
 }
 
-static void do_info_uuid_print(Monitor *mon, const QObject *data)
-{
-    monitor_printf(mon, "%s\n", qdict_get_str(qobject_to_qdict(data), "UUID"));
-}
-
 static void qmp_query_uuid(Monitor *mon, QObject **ret_data)
 {
     char uuid[64];
@@ -823,6 +818,11 @@  static void qmp_query_uuid(Monitor *mon, QObject **ret_data)
     *ret_data = qobject_from_jsonf("{ 'UUID': %s }", uuid);
 }
 
+static void do_info_uuid_print(Monitor *mon, const QObject *data)
+{
+    monitor_printf(mon, "%s\n", qdict_get_str(qobject_to_qdict(data), "UUID"));
+}
+
 /* get the current CPU defined by the user */
 static int mon_set_cpu(int cpu_index)
 {