提交 43076664 编写于 作者: L Luiz Capitulino 提交者: Anthony Liguori

monitor: Convert do_system_powerdown() to QObject

Patchworks-ID: 35346
Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 c80d259e
...@@ -1301,7 +1301,11 @@ static void do_system_reset(Monitor *mon, const QDict *qdict, ...@@ -1301,7 +1301,11 @@ static void do_system_reset(Monitor *mon, const QDict *qdict,
qemu_system_reset_request(); 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(); qemu_system_powerdown_request();
} }
......
...@@ -482,7 +482,8 @@ ETEXI ...@@ -482,7 +482,8 @@ ETEXI
.args_type = "", .args_type = "",
.params = "", .params = "",
.help = "send system power down event", .help = "send system power down event",
.mhandler.cmd = do_system_powerdown, .user_print = monitor_user_noop,
.mhandler.cmd_new = do_system_powerdown,
}, },
STEXI STEXI
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册