qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 6/7] monitor: Convert do_system_reset() to QObject


From: Luiz Capitulino
Subject: [Qemu-devel] [PATCH 6/7] monitor: Convert do_system_reset() to QObject
Date: Wed, 16 Sep 2009 18:32:39 -0300

Signed-off-by: Luiz Capitulino <address@hidden>
---
 monitor.c       |    8 +++++++-
 qemu-monitor.hx |    2 +-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/monitor.c b/monitor.c
index 9ef9108..ef2d8c1 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1300,9 +1300,15 @@ static void do_boot_set(Monitor *mon, const QDict *qdict)
     }
 }
 
-static void do_system_reset(Monitor *mon, const QDict *qdict)
+/**
+ * do_system_reset(): Issue a machine reset
+ *
+ * return always succeed.
+ */
+static int do_system_reset(Monitor *mon, const QDict *qdict, QObject 
**ret_data)
 {
     qemu_system_reset_request();
+    return 0;
 }
 
 static void do_system_powerdown(Monitor *mon, const QDict *qdict)
diff --git a/qemu-monitor.hx b/qemu-monitor.hx
index f6c9911..5b3f84f 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -464,7 +464,7 @@ ETEXI
         .name       = "system_reset",
         .args_type  = "",
         .handler    = do_system_reset,
-        .user_print = NULL,
+        .user_print = monitor_print_nothing,
         .params     = "",
         .help       = "reset the system"
     },
-- 
1.6.5.rc0





reply via email to

[Prev in Thread] Current Thread [Next in Thread]