monitor: Convert do_eject() to QObject
Note that errors are not being converted yet. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
6848d82716
commit
e1c923a62a
@ -570,7 +570,7 @@ static int eject_device(Monitor *mon, BlockDriverState *bs, int force)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void do_eject(Monitor *mon, const QDict *qdict)
|
||||
static void do_eject(Monitor *mon, const QDict *qdict, QObject **ret_data)
|
||||
{
|
||||
BlockDriverState *bs;
|
||||
int force = qdict_get_int(qdict, "force");
|
||||
|
@ -133,7 +133,8 @@ ETEXI
|
||||
.args_type = "force:-f,filename:B",
|
||||
.params = "[-f] device",
|
||||
.help = "eject a removable medium (use -f to force it)",
|
||||
.mhandler.cmd = do_eject,
|
||||
.user_print = monitor_user_noop,
|
||||
.mhandler.cmd_new = do_eject,
|
||||
},
|
||||
|
||||
STEXI
|
||||
|
Loading…
Reference in New Issue
Block a user