qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 11/18] monitor: Convert do_stop() to QObject


From: Luiz Capitulino
Subject: [Qemu-devel] [PATCH 11/18] monitor: Convert do_stop() to QObject
Date: Wed, 7 Oct 2009 13:41:57 -0300

Signed-off-by: Luiz Capitulino <address@hidden>
---
 monitor.c       |    5 ++++-
 qemu-monitor.hx |    3 ++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/monitor.c b/monitor.c
index 4ba415c..ae0a567 100644
--- a/monitor.c
+++ b/monitor.c
@@ -599,7 +599,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 51c7673..8fcba24 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -287,7 +287,8 @@ ETEXI
         .args_type  = "",
         .params     = "",
         .help       = "stop emulation",
-        .mhandler.cmd = do_stop,
+        .user_print = monitor_user_noop,
+        .mhandler.cmd_new = do_stop,
     },
 
 STEXI
-- 
1.6.5.rc2.17.gdbc1b





reply via email to

[Prev in Thread] Current Thread [Next in Thread]