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

login
register
mail settings
Submitter Luiz Capitulino
Date Oct. 7, 2009, 12:27 a.m.
Message ID <1254875232-25012-8-git-send-email-lcapitulino@redhat.com>
Download mbox | patch
Permalink /patch/35179/
State Changes Requested
Headers show

Comments

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

Patch

diff --git a/monitor.c b/monitor.c
index 81f3785..9046c5c 100644
--- a/monitor.c
+++ b/monitor.c
@@ -458,7 +458,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 170c6ae..eb5e728 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -120,7 +120,7 @@  ETEXI
         .name       = "q|quit",
         .args_type  = "",
         .handler    = do_quit,
-        .user_print = NULL,
+        .user_print = monitor_user_noop,
         .params     = "",
         .help       = "quit the emulator"
     },