mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
qapi: convert netdev_del
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-By: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
928059a37b
commit
5f96415527
7 changed files with 31 additions and 13 deletions
9
hmp.c
9
hmp.c
|
@ -990,3 +990,12 @@ void hmp_netdev_add(Monitor *mon, const QDict *qdict)
|
|||
out:
|
||||
hmp_handle_error(mon, &err);
|
||||
}
|
||||
|
||||
void hmp_netdev_del(Monitor *mon, const QDict *qdict)
|
||||
{
|
||||
const char *id = qdict_get_str(qdict, "id");
|
||||
Error *err = NULL;
|
||||
|
||||
qmp_netdev_del(id, &err);
|
||||
hmp_handle_error(mon, &err);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue