qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 7/7] monitor: Convert do_system_powerdown() to QObje


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

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

diff --git a/monitor.c b/monitor.c
index ef2d8c1..db73642 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1311,9 +1311,16 @@ static int do_system_reset(Monitor *mon, const QDict 
*qdict, QObject **ret_data)
     return 0;
 }
 
-static void do_system_powerdown(Monitor *mon, const QDict *qdict)
+/**
+ * do_system_powerdown(): Issue a machine powerdown
+ *
+ * return always succeed.
+ */
+static int do_system_powerdown(Monitor *mon, const QDict *qdict,
+                               QObject **ret_data)
 {
     qemu_system_powerdown_request();
+    return 0;
 }
 
 #if defined(TARGET_I386)
diff --git a/qemu-monitor.hx b/qemu-monitor.hx
index 5b3f84f..1159686 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -478,7 +478,7 @@ ETEXI
         .name       = "system_powerdown",
         .args_type  = "",
         .handler    = do_system_powerdown,
-        .user_print = NULL,
+        .user_print = monitor_print_nothing,
         .params     = "",
         .help       = "send system power down event"
     },
-- 
1.6.5.rc0





reply via email to

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