monitor: Convert do_system_powerdown() to QObject
Patchworks-ID: 35346 Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
c80d259e31
commit
4307666463
@ -1301,7 +1301,11 @@ static void do_system_reset(Monitor *mon, const QDict *qdict,
|
||||
qemu_system_reset_request();
|
||||
}
|
||||
|
||||
static void do_system_powerdown(Monitor *mon, const QDict *qdict)
|
||||
/**
|
||||
* do_system_powerdown(): Issue a machine powerdown
|
||||
*/
|
||||
static void do_system_powerdown(Monitor *mon, const QDict *qdict,
|
||||
QObject **ret_data)
|
||||
{
|
||||
qemu_system_powerdown_request();
|
||||
}
|
||||
|
@ -482,7 +482,8 @@ ETEXI
|
||||
.args_type = "",
|
||||
.params = "",
|
||||
.help = "send system power down event",
|
||||
.mhandler.cmd = do_system_powerdown,
|
||||
.user_print = monitor_user_noop,
|
||||
.mhandler.cmd_new = do_system_powerdown,
|
||||
},
|
||||
|
||||
STEXI
|
||||
|
Loading…
Reference in New Issue
Block a user