]> git.proxmox.com Git - qemu.git/blobdiff - hmp.c
qapi: Convert getfd and closefd
[qemu.git] / hmp.c
diff --git a/hmp.c b/hmp.c
index 4c6d4ae9429fdbe322ef06712e95daced35fa3d6..6b72a64d99ac67fb3bc7a9205ff8afe61ca34311 100644 (file)
--- 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);
+}