summaryrefslogtreecommitdiff
path: root/hmp.c
diff options
context:
space:
mode:
authorCorey Bryant <coreyb@linux.vnet.ibm.com>2012-06-22 14:36:09 -0400
committerLuiz Capitulino <lcapitulino@redhat.com>2012-07-13 13:46:55 -0300
commit208c9d1b7c23e112d2fb83660fa23f2918c4c15b (patch)
treea4b3064fae5835f3ef763d1ad98f3be9158dc323 /hmp.c
parent94c3db85b4cc1d4e078859834a761bcc9d988780 (diff)
qapi: Convert getfd and closefd
Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'hmp.c')
-rw-r--r--hmp.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/hmp.c b/hmp.c
index 4c6d4ae942..6b72a64d99 100644
--- a/hmp.c
+++ b/hmp.c
@@ -1002,3 +1002,21 @@ void hmp_netdev_del(Monitor *mon, const QDict *qdict)
qmp_netdev_del(id, &err);
hmp_handle_error(mon, &err);
}
+
+void hmp_getfd(Monitor *mon, const QDict *qdict)
+{
+ const char *fdname = qdict_get_str(qdict, "fdname");
+ Error *errp = NULL;
+
+ qmp_getfd(fdname, &errp);
+ hmp_handle_error(mon, &errp);
+}
+
+void hmp_closefd(Monitor *mon, const QDict *qdict)
+{
+ const char *fdname = qdict_get_str(qdict, "fdname");
+ Error *errp = NULL;
+
+ qmp_closefd(fdname, &errp);
+ hmp_handle_error(mon, &errp);
+}