static void vga_screen_dump(void *opaque, const char *filename, bool cswitch,

                            Error **errp)

{

    VGACommonState *s = opaque;

    DisplaySurface *surface = qemu_console_surface(s->con);



    if (cswitch) {

        vga_invalidate_display(s);

    }

    graphic_hw_update(s->con);

    ppm_save(filename, surface, errp);

}

static void vga_screen_dump(void *opaque, const char *filename, bool cswitch,

                            Error **errp)

{

    VGACommonState *s = opaque;

    DisplaySurface *surface = qemu_console_surface(s->con);



    if (cswitch) {

        vga_invalidate_display(s);

    }

    graphic_hw_update(s->con);

    ppm_save(filename, surface, errp);

}

static void FUNC_0(void *VAR_0, const char *VAR_1, bool VAR_2,

                            Error **VAR_3)

{

    VGACommonState *s = VAR_0;

    DisplaySurface *surface = qemu_console_surface(s->con);



    if (VAR_2) {

        vga_invalidate_display(s);

    }

    graphic_hw_update(s->con);

    ppm_save(VAR_1, surface, VAR_3);

}

static void FUNC_0(void *VAR_0, const char *VAR_1, bool VAR_2,
Error **VAR_3)
{ VGACommonState *s = VAR_0; DisplaySurface *surface = qemu_console_surface(s->con); if (VAR_2) { vga_invalidate_display(s); } graphic_hw_update(s->con); ppm_save(VAR_1, surface, VAR_3); }