diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2012-04-16 14:36:32 -0300 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2012-06-04 13:49:35 -0300 |
commit | 5f96415527e4f25dc83cfc458c46e5bcbfee79ba (patch) | |
tree | 6ecc0ee905a4c8b1b8d188c3f54f15fc61464790 /hmp.c | |
parent | 928059a37b8e1f152962431fb846f39597b63c36 (diff) |
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>
Diffstat (limited to 'hmp.c')
-rw-r--r-- | hmp.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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); +} |