qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 4/7] monitor: Convert do_quit() do QObject


From: Luiz Capitulino
Subject: [Qemu-devel] [PATCH 4/7] monitor: Convert do_quit() do QObject
Date: Wed, 16 Sep 2009 18:32:37 -0300

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

diff --git a/monitor.c b/monitor.c
index cfbedf8..b324538 100644
--- a/monitor.c
+++ b/monitor.c
@@ -459,9 +459,15 @@ static void do_info_cpu_stats(Monitor *mon)
 }
 #endif
 
-static void do_quit(Monitor *mon, const QDict *qdict)
+/**
+ * do_quit(): Quit QEMU execution
+ *
+ * return always succeed.
+ */
+static int do_quit(Monitor *mon, const QDict *qdict, QObject **ret_data)
 {
     exit(0);
+    return 0;
 }
 
 static int eject_device(Monitor *mon, BlockDriverState *bs, int force)
diff --git a/qemu-monitor.hx b/qemu-monitor.hx
index b7217f3..401d5c5 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -118,7 +118,7 @@ ETEXI
         .name       = "q|quit",
         .args_type  = "",
         .handler    = do_quit,
-        .user_print = NULL,
+        .user_print = monitor_print_nothing,
         .params     = "",
         .help       = "quit the emulator"
     },
-- 
1.6.5.rc0





reply via email to

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