X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=console.h;h=f990684ef4d294ce94ff70ebaa6c06d83f580946;hb=1b7621ad99d352629c096cba40eadc6fb2b0c294;hp=c33ffe0007a4307ce541537991210b041e8a50a3;hpb=85f38553031b1a6e07f786c9ab0d403af7252b4f;p=qemu.git diff --git a/console.h b/console.h index c33ffe000..f990684ef 100644 --- a/console.h +++ b/console.h @@ -5,6 +5,9 @@ #include "qdict.h" #include "notify.h" #include "monitor.h" +#include "trace.h" +#include "qapi-types.h" +#include "error.h" /* keyboard/mouse support */ @@ -202,11 +205,13 @@ static inline DisplaySurface* qemu_create_displaysurface(DisplayState *ds, int w static inline DisplaySurface* qemu_resize_displaysurface(DisplayState *ds, int width, int height) { + trace_displaysurface_resize(ds, ds->surface, width, height); return ds->allocator->resize_displaysurface(ds->surface, width, height); } static inline void qemu_free_displaysurface(DisplayState *ds) { + trace_displaysurface_free(ds, ds->surface); ds->allocator->free_displaysurface(ds->surface); } @@ -340,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 *); +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, @@ -351,7 +357,6 @@ DisplayState *graphic_console_init(vga_hw_update_ptr update, void vga_hw_update(void); void vga_hw_invalidate(void); -void vga_hw_screen_dump(const char *filename); void vga_hw_text_update(console_ch_t *chardata); int is_graphic_console(void); @@ -394,4 +399,8 @@ static inline int vnc_display_pw_expire(DisplayState *ds, time_t expires) /* curses.c */ void curses_display_init(DisplayState *ds, int full_screen); +/* input.c */ +int index_from_key(const char *key); +int index_from_keycode(int code); + #endif