Patchwork [07/14] monitor: Convert do_quit() do QObject

login
register
mail settings
Submitter Luiz Capitulino
Date Oct. 1, 2009, 3:50 p.m.
Message ID <1254412245-10452-8-git-send-email-lcapitulino@redhat.com>
Download mbox | patch
Permalink /patch/34741/
State Superseded
Headers show

Comments

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

Patch

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"
     },