Patchwork [08/14] monitor: Convert do_stop() to QObject

login
register
mail settings
Submitter Luiz Capitulino
Date Oct. 1, 2009, 3:50 p.m.
Message ID <1254412245-10452-9-git-send-email-lcapitulino@redhat.com>
Download mbox | patch
Permalink /patch/34742/
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 411c843..3e96792 100644
--- a/monitor.c
+++ b/monitor.c
@@ -635,7 +635,11 @@  static void do_singlestep(Monitor *mon, const QDict *qdict)
     }
 }
 
-static void do_stop(Monitor *mon, const QDict *qdict)
+/**
+ * do_stop(): Stop VM execution
+ */
+static void do_stop(Monitor *mon, const QDict *qdict, QObject **ret_data,
+                    MonitorError *error)
 {
     vm_stop(EXCP_INTERRUPT);
 }
diff --git a/qemu-monitor.hx b/qemu-monitor.hx
index 7d5af9f..91bfe37 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -310,8 +310,8 @@  ETEXI
         .name       = "stop",
         .args_type  = "",
         .handler    = do_stop,
-        .user_print = NULL,
-        .user_error = NULL,
+        .user_print = monitor_user_noop,
+        .user_error = monitor_error_noop,
         .params     = "",
         .help       = "stop emulation",
     },