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

login
register
mail settings
Submitter Luiz Capitulino
Date Oct. 1, 2009, 3:50 p.m.
Message ID <1254412245-10452-10-git-send-email-lcapitulino@redhat.com>
Download mbox | patch
Permalink /patch/34743/
State Superseded
Headers show

Comments

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

Patch

diff --git a/monitor.c b/monitor.c
index 3e96792..f2f0c74 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1329,7 +1329,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, MonitorError *error)
 {
     qemu_system_reset_request();
 }
diff --git a/qemu-monitor.hx b/qemu-monitor.hx
index 91bfe37..4f8e678 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -507,8 +507,8 @@  ETEXI
         .name       = "system_reset",
         .args_type  = "",
         .handler    = do_system_reset,
-        .user_print = NULL,
-        .user_error = NULL,
+        .user_print = monitor_user_noop,
+        .user_error = monitor_error_noop,
         .params     = "",
         .help       = "reset the system"
     },