From 2c62f08ddbf3fa80dc7202eb9a2ea60ae44e2cc5 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 12 Mar 2013 14:48:31 +0100 Subject: console: simplify screendump Screendumps are alot simpler as we can update non-active QemuConsoles now. So we only need to update the QemuConsole we want write out, then dump the DisplaySurface content into a ppm file. Done. No console switching needed. No special support code in the gfx card emulation needed. Zap it all. Also move ppm_save out of the vga code and next to the qmp_screendump function. For now screen dumping is limited to console #0 (like it used to be), even though it is dead simple to extend it to other consoles. I wanna finish the console cleanup before setting new qapi interfaces into stone. Signed-off-by: Gerd Hoffmann Tested-by: Igor Mitsyanko --- hw/display/vga_int.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'hw/display/vga_int.h') diff --git a/hw/display/vga_int.h b/hw/display/vga_int.h index 1b8f670868..e4bb4a03c3 100644 --- a/hw/display/vga_int.h +++ b/hw/display/vga_int.h @@ -154,7 +154,6 @@ typedef struct VGACommonState { unsigned int g, unsigned b); graphic_hw_update_ptr update; graphic_hw_invalidate_ptr invalidate; - graphic_hw_screen_dump_ptr screen_dump; graphic_hw_text_update_ptr text_update; bool full_update_text; bool full_update_gfx; @@ -198,7 +197,6 @@ void vga_ioport_write(void *opaque, uint32_t addr, uint32_t val); uint32_t vga_mem_readb(VGACommonState *s, hwaddr addr); void vga_mem_writeb(VGACommonState *s, hwaddr addr, uint32_t val); void vga_invalidate_scanlines(VGACommonState *s, int y1, int y2); -void ppm_save(const char *filename, struct DisplaySurface *ds, Error **errp); int vga_ioport_invalid(VGACommonState *s, uint32_t addr); -- cgit v1.2.3