mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-27 12:02:04 -06: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:
parent
92d48558ed
commit
c245b6a37d
7 changed files with 39 additions and 22 deletions
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue