Patchwork [10/18] monitor: Convert do_quit() do QObject

login
register
mail settings
Submitter Luiz Capitulino
Date Oct. 7, 2009, 4:32 p.m.
Message ID <1254933135-21888-11-git-send-email-lcapitulino@redhat.com>
Download mbox | patch
Permalink /patch/35325/
State Superseded
Headers show

Comments

Luiz Capitulino - Oct. 7, 2009, 4:32 p.m.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 monitor.c       |    5 ++++-
 qemu-monitor.hx |    3 ++-
 2 files changed, 6 insertions(+), 2 deletions(-)

Patch

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