diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2012-05-24 13:48:23 -0300 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2012-09-05 15:48:57 -0300 |
commit | ad39cf6d150e951e4c67c8120d495ae7e78054a6 (patch) | |
tree | 33a507b37ef91aa60230cbe3b0e6455178dbe649 /hmp.c | |
parent | d7098135d4baac8141b2e76f2daa8a7f61599c72 (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.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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); +} |