mirror of
https://github.com/mii443/qemu.git
synced 2025-08-30 19:09:35 +00:00
qapi: Convert eject
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
10
hmp.c
10
hmp.c
@ -702,3 +702,13 @@ void hmp_expire_password(Monitor *mon, const QDict *qdict)
|
||||
qmp_expire_password(protocol, whenstr, &err);
|
||||
hmp_handle_error(mon, &err);
|
||||
}
|
||||
|
||||
void hmp_eject(Monitor *mon, const QDict *qdict)
|
||||
{
|
||||
int force = qdict_get_try_bool(qdict, "force", 0);
|
||||
const char *device = qdict_get_str(qdict, "device");
|
||||
Error *err = NULL;
|
||||
|
||||
qmp_eject(device, true, force, &err);
|
||||
hmp_handle_error(mon, &err);
|
||||
}
|
||||
|
Reference in New Issue
Block a user