mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
vga: ppm_save(): add error handling
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
ad39cf6d15
commit
d663174dcd
5 changed files with 30 additions and 11 deletions
|
@ -23,6 +23,7 @@
|
|||
*/
|
||||
|
||||
#include <hw/hw.h>
|
||||
#include "error.h"
|
||||
#include "memory.h"
|
||||
|
||||
#define ST01_V_RETRACE 0x08
|
||||
|
@ -204,7 +205,7 @@ void vga_ioport_write(void *opaque, uint32_t addr, uint32_t val);
|
|||
uint32_t vga_mem_readb(VGACommonState *s, target_phys_addr_t addr);
|
||||
void vga_mem_writeb(VGACommonState *s, target_phys_addr_t addr, uint32_t val);
|
||||
void vga_invalidate_scanlines(VGACommonState *s, int y1, int y2);
|
||||
int ppm_save(const char *filename, struct DisplaySurface *ds);
|
||||
void ppm_save(const char *filename, struct DisplaySurface *ds, Error **errp);
|
||||
|
||||
int vga_ioport_invalid(VGACommonState *s, uint32_t addr);
|
||||
void vga_init_vbe(VGACommonState *s, MemoryRegion *address_space);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue