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

login
register
mail settings
Submitter Luiz Capitulino
Date Oct. 7, 2009, 12:27 a.m.
Message ID <1254875232-25012-9-git-send-email-lcapitulino@redhat.com>
Download mbox | patch
Permalink /patch/35180/
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       |    5 ++++-
 qemu-monitor.hx |    2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

Patch

diff --git a/monitor.c b/monitor.c
index 9046c5c..71e659d 100644
--- a/monitor.c
+++ b/monitor.c
@@ -600,7 +600,10 @@  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)
 {
     vm_stop(EXCP_INTERRUPT);
 }
diff --git a/qemu-monitor.hx b/qemu-monitor.hx
index eb5e728..a3e4b54 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -297,7 +297,7 @@  ETEXI
         .name       = "stop",
         .args_type  = "",
         .handler    = do_stop,
-        .user_print = NULL,
+        .user_print = monitor_user_noop,
         .params     = "",
         .help       = "stop emulation",
     },