From 5f96415527e4f25dc83cfc458c46e5bcbfee79ba Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Mon, 16 Apr 2012 14:36:32 -0300 Subject: qapi: convert netdev_del Signed-off-by: Anthony Liguori Signed-off-by: Luiz Capitulino Reviewed-By: Laszlo Ersek --- hmp.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'hmp.c') diff --git a/hmp.c b/hmp.c index 7a4e25f30c..2ce8cb9df1 100644 --- a/hmp.c +++ b/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); +} -- cgit v1.2.3