mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
console: vga_hw_screen_dump_ptr: take Error argument
All devices that register a screen dump callback via graphic_console_init() are updated. The new argument is not used in this commit. Error handling will be added to each device individually later. This change is a preparation to convert the screendump command to the QAPI. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
75d789f8d3
commit
d7098135d4
9 changed files with 27 additions and 15 deletions
6
hw/vga.c
6
hw/vga.c
|
@ -166,7 +166,8 @@ static uint32_t expand4[256];
|
|||
static uint16_t expand2[256];
|
||||
static uint8_t expand4to8[16];
|
||||
|
||||
static void vga_screen_dump(void *opaque, const char *filename, bool cswitch);
|
||||
static void vga_screen_dump(void *opaque, const char *filename, bool cswitch,
|
||||
Error **errp);
|
||||
|
||||
static void vga_update_memory_access(VGACommonState *s)
|
||||
{
|
||||
|
@ -2435,7 +2436,8 @@ int ppm_save(const char *filename, struct DisplaySurface *ds)
|
|||
|
||||
/* save the vga display in a PPM image even if no display is
|
||||
available */
|
||||
static void vga_screen_dump(void *opaque, const char *filename, bool cswitch)
|
||||
static void vga_screen_dump(void *opaque, const char *filename, bool cswitch,
|
||||
Error **errp)
|
||||
{
|
||||
VGACommonState *s = opaque;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue