summaryrefslogtreecommitdiffstats
path: root/console.h
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2012-05-21 16:41:37 -0300
committerLuiz Capitulino <lcapitulino@redhat.com>2012-09-05 15:48:57 -0300
commitd7098135d4baac8141b2e76f2daa8a7f61599c72 (patch)
tree8f9c1434a55b3f7305f7d440b080ce50e716df1f /console.h
parent75d789f8d38be693bbee3e77b558e59012e33997 (diff)
downloadhqemu-d7098135d4baac8141b2e76f2daa8a7f61599c72.zip
hqemu-d7098135d4baac8141b2e76f2daa8a7f61599c72.tar.gz
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 'console.h')
-rw-r--r--console.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/console.h b/console.h
index c702b23..fd68ecc 100644
--- a/console.h
+++ b/console.h
@@ -7,6 +7,7 @@
#include "monitor.h"
#include "trace.h"
#include "qapi-types.h"
+#include "error.h"
/* keyboard/mouse support */
@@ -344,7 +345,8 @@ static inline void console_write_ch(console_ch_t *dest, uint32_t ch)
typedef void (*vga_hw_update_ptr)(void *);
typedef void (*vga_hw_invalidate_ptr)(void *);
-typedef void (*vga_hw_screen_dump_ptr)(void *, const char *, bool cswitch);
+typedef void (*vga_hw_screen_dump_ptr)(void *, const char *, bool cswitch,
+ Error **errp);
typedef void (*vga_hw_text_update_ptr)(void *, console_ch_t *);
DisplayState *graphic_console_init(vga_hw_update_ptr update,
OpenPOWER on IntegriCloud