aboutsummaryrefslogtreecommitdiff
path: root/hmp.c
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2012-05-24 13:48:23 -0300
committerLuiz Capitulino <lcapitulino@redhat.com>2012-09-05 15:48:57 -0300
commitad39cf6d150e951e4c67c8120d495ae7e78054a6 (patch)
tree33a507b37ef91aa60230cbe3b0e6455178dbe649 /hmp.c
parentd7098135d4baac8141b2e76f2daa8a7f61599c72 (diff)
qapi: convert screendump
Next commits will update devices to propagate errors. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'hmp.c')
-rw-r--r--hmp.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/hmp.c b/hmp.c
index ba99b2fb30..1bdab22778 100644
--- 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);
+}