summaryrefslogtreecommitdiffstats
path: root/hw/vmware_vga.c
diff options
context:
space:
mode:
authorLuiz Capitulino2012-05-21 21:41:37 +0200
committerLuiz Capitulino2012-09-05 20:48:57 +0200
commitd7098135d4baac8141b2e76f2daa8a7f61599c72 (patch)
tree8f9c1434a55b3f7305f7d440b080ce50e716df1f /hw/vmware_vga.c
parenterror: add error_setg() (diff)
downloadqemu-d7098135d4baac8141b2e76f2daa8a7f61599c72.tar.gz
qemu-d7098135d4baac8141b2e76f2daa8a7f61599c72.tar.xz
qemu-d7098135d4baac8141b2e76f2daa8a7f61599c72.zip
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>
Diffstat (limited to 'hw/vmware_vga.c')
-rw-r--r--hw/vmware_vga.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c
index f5e4f440d5..29750e1b0d 100644
--- a/hw/vmware_vga.c
+++ b/hw/vmware_vga.c
@@ -1003,11 +1003,12 @@ static void vmsvga_invalidate_display(void *opaque)
/* save the vga display in a PPM image even if no display is
available */
-static void vmsvga_screen_dump(void *opaque, const char *filename, bool cswitch)
+static void vmsvga_screen_dump(void *opaque, const char *filename, bool cswitch,
+ Error **errp)
{
struct vmsvga_state_s *s = opaque;
if (!s->enable) {
- s->vga.screen_dump(&s->vga, filename, cswitch);
+ s->vga.screen_dump(&s->vga, filename, cswitch, errp);
return;
}