qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 10/14] monitor: Convert do_system_powerdown() to QOb


From: Luiz Capitulino
Subject: [Qemu-devel] [PATCH 10/14] monitor: Convert do_system_powerdown() to QObject
Date: Thu, 1 Oct 2009 12:50:41 -0300

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

diff --git a/monitor.c b/monitor.c
index f2f0c74..87fd91c 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1338,7 +1338,11 @@ static void do_system_reset(Monitor *mon, const QDict 
*qdict,
     qemu_system_reset_request();
 }
 
-static void do_system_powerdown(Monitor *mon, const QDict *qdict)
+/**
+ * do_system_powerdown(): Issue a machine powerdown
+ */
+static void do_system_powerdown(Monitor *mon, const QDict *qdict,
+                                QObject **ret_data, MonitorError *error)
 {
     qemu_system_powerdown_request();
 }
diff --git a/qemu-monitor.hx b/qemu-monitor.hx
index 4f8e678..e848b1d 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -523,8 +523,8 @@ ETEXI
         .name       = "system_powerdown",
         .args_type  = "",
         .handler    = do_system_powerdown,
-        .user_print = NULL,
-        .user_error = NULL,
+        .user_print = monitor_user_noop,
+        .user_error = monitor_error_noop,
         .params     = "",
         .help       = "send system power down event"
     },
-- 
1.6.5.rc2





reply via email to

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