diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2009-10-07 13:41:56 -0300 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-08 21:17:19 -0500 |
commit | b223f35f4e13a65db8032700a329c7cbf62016c5 (patch) | |
tree | 32ca04045994b9f1ee3e32013dd43c03c57683ee | |
parent | 13c7425e1a3b1f3503d87aaa765ff0112c6b4dd7 (diff) |
monitor: Convert do_quit() do QObject
Patchworks-ID: 35345
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | monitor.c | 5 | ||||
-rw-r--r-- | qemu-monitor.hx | 3 |
2 files changed, 6 insertions, 2 deletions
@@ -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 c37b0cb435..51c76736b7 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 |