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:
Luiz Capitulino 2009-10-07 13:41:59 -03:00 committed by Anthony Liguori
parent c80d259e31
commit 4307666463
2 changed files with 7 additions and 2 deletions

View File

@ -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();
}

View File

@ -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