mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
qapi: convert screendump
Next commits will update devices to propagate errors. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
d7098135d4
commit
ad39cf6d15
8 changed files with 29 additions and 16 deletions
9
hmp.c
9
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue