Patchwork [09/15] monitor: Convert do_system_reset() to QObject

login
register
mail settings
Submitter Luiz Capitulino
Date Oct. 7, 2009, 12:27 a.m.
Message ID <1254875232-25012-10-git-send-email-lcapitulino@redhat.com>
Download mbox | patch
Permalink /patch/35181/
State Changes Requested
Headers show

Comments

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

Patch

diff --git a/monitor.c b/monitor.c
index 71e659d..d1396c3 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1293,7 +1293,11 @@  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
+ */
+static void do_system_reset(Monitor *mon, const QDict *qdict,
+                            QObject **ret_data)
 {
     qemu_system_reset_request();
 }
diff --git a/qemu-monitor.hx b/qemu-monitor.hx
index a3e4b54..4b18680 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -485,7 +485,7 @@  ETEXI
         .name       = "system_reset",
         .args_type  = "",
         .handler    = do_system_reset,
-        .user_print = NULL,
+        .user_print = monitor_user_noop,
         .params     = "",
         .help       = "reset the system"
     },