Revision 4d3b6f6e console.h
b/console.h | ||
---|---|---|
79 | 79 |
int dst_x, int dst_y, int w, int h); |
80 | 80 |
void (*dpy_fill)(struct DisplayState *s, int x, int y, |
81 | 81 |
int w, int h, uint32_t c); |
82 |
void (*dpy_text_cursor)(struct DisplayState *s, int x, int y); |
|
82 | 83 |
void (*mouse_set)(int x, int y, int on); |
83 | 84 |
void (*cursor_define)(int width, int height, int bpp, int hot_x, int hot_y, |
84 | 85 |
uint8_t *image, uint8_t *mask); |
... | ... | |
94 | 95 |
s->dpy_resize(s, w, h); |
95 | 96 |
} |
96 | 97 |
|
98 |
static inline void dpy_cursor(DisplayState *s, int x, int y) |
|
99 |
{ |
|
100 |
if (s->dpy_text_cursor) |
|
101 |
s->dpy_text_cursor(s, x, y); |
|
102 |
} |
|
103 |
|
|
104 |
typedef unsigned long console_ch_t; |
|
105 |
static inline void console_write_ch(console_ch_t *dest, uint32_t ch) |
|
106 |
{ |
|
107 |
cpu_to_le32wu((uint32_t *) dest, ch); |
|
108 |
} |
|
109 |
|
|
97 | 110 |
typedef void (*vga_hw_update_ptr)(void *); |
98 | 111 |
typedef void (*vga_hw_invalidate_ptr)(void *); |
99 | 112 |
typedef void (*vga_hw_screen_dump_ptr)(void *, const char *); |
113 |
typedef void (*vga_hw_text_update_ptr)(void *, console_ch_t *); |
|
100 | 114 |
|
101 | 115 |
TextConsole *graphic_console_init(DisplayState *ds, vga_hw_update_ptr update, |
102 | 116 |
vga_hw_invalidate_ptr invalidate, |
103 | 117 |
vga_hw_screen_dump_ptr screen_dump, |
118 |
vga_hw_text_update_ptr text_update, |
|
104 | 119 |
void *opaque); |
105 | 120 |
void vga_hw_update(void); |
106 | 121 |
void vga_hw_invalidate(void); |
107 | 122 |
void vga_hw_screen_dump(const char *filename); |
123 |
void vga_hw_text_update(console_ch_t *chardata); |
|
108 | 124 |
|
109 | 125 |
int is_graphic_console(void); |
110 | 126 |
CharDriverState *text_console_init(DisplayState *ds, const char *p); |
... | ... | |
124 | 140 |
int vnc_display_password(DisplayState *ds, const char *password); |
125 | 141 |
void do_info_vnc(void); |
126 | 142 |
|
143 |
/* curses.c */ |
|
144 |
void curses_display_init(DisplayState *ds, int full_screen); |
|
145 |
|
|
127 | 146 |
/* x_keymap.c */ |
128 | 147 |
extern uint8_t _translate_keycode(const int key); |
129 | 148 |
|
Also available in: Unified diff