qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [COMMIT b223f35] monitor: Convert do_quit() do QObject


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT b223f35] monitor: Convert do_quit() do QObject
Date: Fri, 09 Oct 2009 02:22:01 -0000

From: Luiz Capitulino <address@hidden>

Patchworks-ID: 35345
Signed-off-by: Luiz Capitulino <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

diff --git a/monitor.c b/monitor.c
index cc1b501..4ba415c 100644
--- a/monitor.c
+++ b/monitor.c
@@ -457,7 +457,10 @@ 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)
 {
     exit(0);
 }
diff --git a/qemu-monitor.hx b/qemu-monitor.hx
index c37b0cb..51c7673 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -119,7 +119,8 @@ ETEXI
         .args_type  = "",
         .params     = "",
         .help       = "quit the emulator",
-        .mhandler.cmd = do_quit,
+        .user_print = monitor_user_noop,
+        .mhandler.cmd_new = do_quit,
     },
 
 STEXI




reply via email to

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