]> git.proxmox.com Git - qemu.git/blobdiff - hmp.c
block: add block-job-complete
[qemu.git] / hmp.c
diff --git a/hmp.c b/hmp.c
index 2b979826ee4817a3c709c2b8d6b2d07d5087c9f1..574517a17f9ad8a49ef0169ba59d720b9fcc9782 100644 (file)
--- a/hmp.c
+++ b/hmp.c
@@ -990,6 +990,16 @@ void hmp_block_job_resume(Monitor *mon, const QDict *qdict)
     hmp_handle_error(mon, &error);
 }
 
+void hmp_block_job_complete(Monitor *mon, const QDict *qdict)
+{
+    Error *error = NULL;
+    const char *device = qdict_get_str(qdict, "device");
+
+    qmp_block_job_complete(device, &error);
+
+    hmp_handle_error(mon, &error);
+}
+
 typedef struct MigrationStatus
 {
     QEMUTimer *timer;