qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 07/14] monitor: Convert do_quit() do QObject


From: Luiz Capitulino
Subject: [Qemu-devel] [PATCH 07/14] monitor: Convert do_quit() do QObject
Date: Thu, 1 Oct 2009 12:50:38 -0300

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

diff --git a/monitor.c b/monitor.c
index fecdc63..411c843 100644
--- a/monitor.c
+++ b/monitor.c
@@ -492,7 +492,11 @@ static void do_info_cpu_stats(Monitor *mon)
 }
 #endif
 
-static void do_quit(Monitor *mon, const QDict *qdict)
+/**
+ * do_quit(): Quit QEMU execution
+ */
+static void do_quit(Monitor *mon, const QDict *qdict, QObject **ret_data,
+                    MonitorError *error)
 {
     exit(0);
 }
diff --git a/qemu-monitor.hx b/qemu-monitor.hx
index b9c33e5..7d5af9f 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -123,8 +123,8 @@ ETEXI
         .name       = "q|quit",
         .args_type  = "",
         .handler    = do_quit,
-        .user_print = NULL,
-        .user_error = NULL,
+        .user_print = monitor_user_noop,
+        .user_error = monitor_error_noop,
         .params     = "",
         .help       = "quit the emulator"
     },
-- 
1.6.5.rc2





reply via email to

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