]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hmp.c
qapi: convert screendump
[mirror_qemu.git] / hmp.c
diff --git a/hmp.c b/hmp.c
index ba99b2fb30d4bd5ff843d93c235e01c657410a9e..1bdab22778c9623bd833a092989dc6fdafb27061 100644 (file)
--- a/hmp.c
+++ b/hmp.c
@@ -1157,3 +1157,12 @@ void hmp_send_key(Monitor *mon, const QDict *qdict)
     hmp_handle_error(mon, &err);
     qapi_free_QKeyCodeList(head);
 }
+
+void hmp_screen_dump(Monitor *mon, const QDict *qdict)
+{
+    const char *filename = qdict_get_str(qdict, "filename");
+    Error *err = NULL;
+
+    qmp_screendump(filename, &err);
+    hmp_handle_error(mon, &err);
+}