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>
This commit is contained in:
parent
13c7425e1a
commit
b223f35f4e
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user