diff mbox

[10/15] monitor: Convert do_system_powerdown() to QObject

Message ID 1254875232-25012-11-git-send-email-lcapitulino@redhat.com
State Changes Requested
Headers show

Commit Message

Luiz Capitulino Oct. 7, 2009, 12:27 a.m. UTC
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 monitor.c       |    6 +++++-
 qemu-monitor.hx |    2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/monitor.c b/monitor.c
index d1396c3..198f0fc 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1302,7 +1302,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)
 {
     qemu_system_powerdown_request();
 }
diff --git a/qemu-monitor.hx b/qemu-monitor.hx
index 4b18680..eef0c8e 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -500,7 +500,7 @@  ETEXI
         .name       = "system_powerdown",
         .args_type  = "",
         .handler    = do_system_powerdown,
-        .user_print = NULL,
+        .user_print = monitor_user_noop,
         .params     = "",
         .help       = "send system power down event"
     },