root / console.h @ db3a964f
History | View | Annotate | Download (10.1 kB)
1 | 87ecb68b | pbrook | #ifndef CONSOLE_H
|
---|---|---|---|
2 | 87ecb68b | pbrook | #define CONSOLE_H
|
3 | 87ecb68b | pbrook | |
4 | 87ecb68b | pbrook | #include "qemu-char.h" |
5 | d54908a5 | Luiz Capitulino | #include "qdict.h" |
6 | 87ecb68b | pbrook | |
7 | 87ecb68b | pbrook | /* keyboard/mouse support */
|
8 | 87ecb68b | pbrook | |
9 | 87ecb68b | pbrook | #define MOUSE_EVENT_LBUTTON 0x01 |
10 | 87ecb68b | pbrook | #define MOUSE_EVENT_RBUTTON 0x02 |
11 | 87ecb68b | pbrook | #define MOUSE_EVENT_MBUTTON 0x04 |
12 | 87ecb68b | pbrook | |
13 | 7ed9eba3 | aliguori | /* in ms */
|
14 | 7ed9eba3 | aliguori | #define GUI_REFRESH_INTERVAL 30 |
15 | 7ed9eba3 | aliguori | |
16 | 87ecb68b | pbrook | typedef void QEMUPutKBDEvent(void *opaque, int keycode); |
17 | 87ecb68b | pbrook | typedef void QEMUPutMouseEvent(void *opaque, int dx, int dy, int dz, int buttons_state); |
18 | 87ecb68b | pbrook | |
19 | 87ecb68b | pbrook | typedef struct QEMUPutMouseEntry { |
20 | 87ecb68b | pbrook | QEMUPutMouseEvent *qemu_put_mouse_event; |
21 | 87ecb68b | pbrook | void *qemu_put_mouse_event_opaque;
|
22 | 87ecb68b | pbrook | int qemu_put_mouse_event_absolute;
|
23 | 87ecb68b | pbrook | char *qemu_put_mouse_event_name;
|
24 | 87ecb68b | pbrook | |
25 | 87ecb68b | pbrook | /* used internally by qemu for handling mice */
|
26 | 87ecb68b | pbrook | struct QEMUPutMouseEntry *next;
|
27 | 87ecb68b | pbrook | } QEMUPutMouseEntry; |
28 | 87ecb68b | pbrook | |
29 | 87ecb68b | pbrook | void qemu_add_kbd_event_handler(QEMUPutKBDEvent *func, void *opaque); |
30 | 87ecb68b | pbrook | QEMUPutMouseEntry *qemu_add_mouse_event_handler(QEMUPutMouseEvent *func, |
31 | 87ecb68b | pbrook | void *opaque, int absolute, |
32 | 87ecb68b | pbrook | const char *name); |
33 | 87ecb68b | pbrook | void qemu_remove_mouse_event_handler(QEMUPutMouseEntry *entry);
|
34 | 87ecb68b | pbrook | |
35 | 87ecb68b | pbrook | void kbd_put_keycode(int keycode); |
36 | 87ecb68b | pbrook | void kbd_mouse_event(int dx, int dy, int dz, int buttons_state); |
37 | 87ecb68b | pbrook | int kbd_mouse_is_absolute(void); |
38 | 87ecb68b | pbrook | |
39 | bc24a225 | Paul Brook | struct MouseTransformInfo {
|
40 | a5d7eb65 | balrog | /* Touchscreen resolution */
|
41 | a5d7eb65 | balrog | int x;
|
42 | a5d7eb65 | balrog | int y;
|
43 | a5d7eb65 | balrog | /* Calibration values as used/generated by tslib */
|
44 | a5d7eb65 | balrog | int a[7]; |
45 | a5d7eb65 | balrog | }; |
46 | a5d7eb65 | balrog | |
47 | e78c48ec | Luiz Capitulino | void do_info_mice_print(Monitor *mon, const QObject *data); |
48 | e78c48ec | Luiz Capitulino | void do_info_mice(Monitor *mon, QObject **ret_data);
|
49 | d54908a5 | Luiz Capitulino | void do_mouse_set(Monitor *mon, const QDict *qdict); |
50 | 87ecb68b | pbrook | |
51 | 87ecb68b | pbrook | /* keysym is a unicode code except for special keys (see QEMU_KEY_xxx
|
52 | 87ecb68b | pbrook | constants) */
|
53 | 87ecb68b | pbrook | #define QEMU_KEY_ESC1(c) ((c) | 0xe100) |
54 | 87ecb68b | pbrook | #define QEMU_KEY_BACKSPACE 0x007f |
55 | 87ecb68b | pbrook | #define QEMU_KEY_UP QEMU_KEY_ESC1('A') |
56 | 87ecb68b | pbrook | #define QEMU_KEY_DOWN QEMU_KEY_ESC1('B') |
57 | 87ecb68b | pbrook | #define QEMU_KEY_RIGHT QEMU_KEY_ESC1('C') |
58 | 87ecb68b | pbrook | #define QEMU_KEY_LEFT QEMU_KEY_ESC1('D') |
59 | 87ecb68b | pbrook | #define QEMU_KEY_HOME QEMU_KEY_ESC1(1) |
60 | 87ecb68b | pbrook | #define QEMU_KEY_END QEMU_KEY_ESC1(4) |
61 | 87ecb68b | pbrook | #define QEMU_KEY_PAGEUP QEMU_KEY_ESC1(5) |
62 | 87ecb68b | pbrook | #define QEMU_KEY_PAGEDOWN QEMU_KEY_ESC1(6) |
63 | 87ecb68b | pbrook | #define QEMU_KEY_DELETE QEMU_KEY_ESC1(3) |
64 | 87ecb68b | pbrook | |
65 | 87ecb68b | pbrook | #define QEMU_KEY_CTRL_UP 0xe400 |
66 | 87ecb68b | pbrook | #define QEMU_KEY_CTRL_DOWN 0xe401 |
67 | 87ecb68b | pbrook | #define QEMU_KEY_CTRL_LEFT 0xe402 |
68 | 87ecb68b | pbrook | #define QEMU_KEY_CTRL_RIGHT 0xe403 |
69 | 87ecb68b | pbrook | #define QEMU_KEY_CTRL_HOME 0xe404 |
70 | 87ecb68b | pbrook | #define QEMU_KEY_CTRL_END 0xe405 |
71 | 87ecb68b | pbrook | #define QEMU_KEY_CTRL_PAGEUP 0xe406 |
72 | 87ecb68b | pbrook | #define QEMU_KEY_CTRL_PAGEDOWN 0xe407 |
73 | 87ecb68b | pbrook | |
74 | 87ecb68b | pbrook | void kbd_put_keysym(int keysym); |
75 | 87ecb68b | pbrook | |
76 | 87ecb68b | pbrook | /* consoles */
|
77 | 87ecb68b | pbrook | |
78 | 7d957bd8 | aliguori | #define QEMU_BIG_ENDIAN_FLAG 0x01 |
79 | 7d957bd8 | aliguori | #define QEMU_ALLOCATED_FLAG 0x02 |
80 | c18a2c36 | Stefano Stabellini | #define QEMU_REALPIXELS_FLAG 0x04 |
81 | 7d957bd8 | aliguori | |
82 | 7d957bd8 | aliguori | struct PixelFormat {
|
83 | 7d957bd8 | aliguori | uint8_t bits_per_pixel; |
84 | 7d957bd8 | aliguori | uint8_t bytes_per_pixel; |
85 | 7d957bd8 | aliguori | uint8_t depth; /* color depth in bits */
|
86 | 7d957bd8 | aliguori | uint32_t rmask, gmask, bmask, amask; |
87 | 7d957bd8 | aliguori | uint8_t rshift, gshift, bshift, ashift; |
88 | 7d957bd8 | aliguori | uint8_t rmax, gmax, bmax, amax; |
89 | 90a1e3c0 | aliguori | uint8_t rbits, gbits, bbits, abits; |
90 | 7d957bd8 | aliguori | }; |
91 | 7d957bd8 | aliguori | |
92 | 7d957bd8 | aliguori | struct DisplaySurface {
|
93 | 7d957bd8 | aliguori | uint8_t flags; |
94 | 87ecb68b | pbrook | int width;
|
95 | 87ecb68b | pbrook | int height;
|
96 | 7d957bd8 | aliguori | int linesize; /* bytes per line */ |
97 | 7d957bd8 | aliguori | uint8_t *data; |
98 | 7d957bd8 | aliguori | |
99 | 7d957bd8 | aliguori | struct PixelFormat pf;
|
100 | 7d957bd8 | aliguori | }; |
101 | 7d957bd8 | aliguori | |
102 | 7d957bd8 | aliguori | struct DisplayChangeListener {
|
103 | 7d957bd8 | aliguori | int idle;
|
104 | f442e08b | aurel32 | uint64_t gui_timer_interval; |
105 | 87ecb68b | pbrook | |
106 | 87ecb68b | pbrook | void (*dpy_update)(struct DisplayState *s, int x, int y, int w, int h); |
107 | 7d957bd8 | aliguori | void (*dpy_resize)(struct DisplayState *s); |
108 | 7d957bd8 | aliguori | void (*dpy_setdata)(struct DisplayState *s); |
109 | 87ecb68b | pbrook | void (*dpy_refresh)(struct DisplayState *s); |
110 | 87ecb68b | pbrook | void (*dpy_copy)(struct DisplayState *s, int src_x, int src_y, |
111 | 87ecb68b | pbrook | int dst_x, int dst_y, int w, int h); |
112 | 87ecb68b | pbrook | void (*dpy_fill)(struct DisplayState *s, int x, int y, |
113 | 87ecb68b | pbrook | int w, int h, uint32_t c); |
114 | 4d3b6f6e | balrog | void (*dpy_text_cursor)(struct DisplayState *s, int x, int y); |
115 | 7d957bd8 | aliguori | |
116 | 7d957bd8 | aliguori | struct DisplayChangeListener *next;
|
117 | 7d957bd8 | aliguori | }; |
118 | 7d957bd8 | aliguori | |
119 | 7b5d76da | aliguori | struct DisplayAllocator {
|
120 | 7b5d76da | aliguori | DisplaySurface* (*create_displaysurface)(int width, int height); |
121 | 7b5d76da | aliguori | DisplaySurface* (*resize_displaysurface)(DisplaySurface *surface, int width, int height); |
122 | 7b5d76da | aliguori | void (*free_displaysurface)(DisplaySurface *surface);
|
123 | 7b5d76da | aliguori | }; |
124 | 7b5d76da | aliguori | |
125 | 7d957bd8 | aliguori | struct DisplayState {
|
126 | 7d957bd8 | aliguori | struct DisplaySurface *surface;
|
127 | 7d957bd8 | aliguori | void *opaque;
|
128 | 7d957bd8 | aliguori | struct QEMUTimer *gui_timer;
|
129 | 7d957bd8 | aliguori | |
130 | 7b5d76da | aliguori | struct DisplayAllocator* allocator;
|
131 | 7d957bd8 | aliguori | struct DisplayChangeListener* listeners;
|
132 | 7d957bd8 | aliguori | |
133 | 87ecb68b | pbrook | void (*mouse_set)(int x, int y, int on); |
134 | 87ecb68b | pbrook | void (*cursor_define)(int width, int height, int bpp, int hot_x, int hot_y, |
135 | 87ecb68b | pbrook | uint8_t *image, uint8_t *mask); |
136 | 3023f332 | aliguori | |
137 | 3023f332 | aliguori | struct DisplayState *next;
|
138 | 87ecb68b | pbrook | }; |
139 | 87ecb68b | pbrook | |
140 | 3023f332 | aliguori | void register_displaystate(DisplayState *ds);
|
141 | 3023f332 | aliguori | DisplayState *get_displaystate(void);
|
142 | 7d957bd8 | aliguori | DisplaySurface* qemu_create_displaysurface_from(int width, int height, int bpp, |
143 | 7d957bd8 | aliguori | int linesize, uint8_t *data);
|
144 | 0da2ea1b | malc | PixelFormat qemu_different_endianness_pixelformat(int bpp);
|
145 | 0da2ea1b | malc | PixelFormat qemu_default_pixelformat(int bpp);
|
146 | 7d957bd8 | aliguori | |
147 | 7b5d76da | aliguori | extern struct DisplayAllocator default_allocator; |
148 | 7b5d76da | aliguori | DisplayAllocator *register_displayallocator(DisplayState *ds, DisplayAllocator *da); |
149 | 7b5d76da | aliguori | DisplaySurface* defaultallocator_create_displaysurface(int width, int height); |
150 | 7b5d76da | aliguori | DisplaySurface* defaultallocator_resize_displaysurface(DisplaySurface *surface, int width, int height); |
151 | 7b5d76da | aliguori | void defaultallocator_free_displaysurface(DisplaySurface *surface);
|
152 | 7b5d76da | aliguori | |
153 | 7b5d76da | aliguori | static inline DisplaySurface* qemu_create_displaysurface(DisplayState *ds, int width, int height) |
154 | 7b5d76da | aliguori | { |
155 | 7b5d76da | aliguori | return ds->allocator->create_displaysurface(width, height);
|
156 | 7b5d76da | aliguori | } |
157 | 7b5d76da | aliguori | |
158 | 7b5d76da | aliguori | static inline DisplaySurface* qemu_resize_displaysurface(DisplayState *ds, int width, int height) |
159 | 7b5d76da | aliguori | { |
160 | 7b5d76da | aliguori | return ds->allocator->resize_displaysurface(ds->surface, width, height);
|
161 | 7b5d76da | aliguori | } |
162 | 7b5d76da | aliguori | |
163 | 7b5d76da | aliguori | static inline void qemu_free_displaysurface(DisplayState *ds) |
164 | 7b5d76da | aliguori | { |
165 | 7b5d76da | aliguori | ds->allocator->free_displaysurface(ds->surface); |
166 | 7b5d76da | aliguori | } |
167 | 7b5d76da | aliguori | |
168 | 7b5d76da | aliguori | static inline int is_surface_bgr(DisplaySurface *surface) |
169 | 7b5d76da | aliguori | { |
170 | 7b5d76da | aliguori | if (surface->pf.bits_per_pixel == 32 && surface->pf.rshift == 0) |
171 | 7b5d76da | aliguori | return 1; |
172 | 7b5d76da | aliguori | else
|
173 | 7b5d76da | aliguori | return 0; |
174 | 7b5d76da | aliguori | } |
175 | 7b5d76da | aliguori | |
176 | 7d957bd8 | aliguori | static inline int is_buffer_shared(DisplaySurface *surface) |
177 | 7d957bd8 | aliguori | { |
178 | c18a2c36 | Stefano Stabellini | return (!(surface->flags & QEMU_ALLOCATED_FLAG) &&
|
179 | c18a2c36 | Stefano Stabellini | !(surface->flags & QEMU_REALPIXELS_FLAG)); |
180 | 7d957bd8 | aliguori | } |
181 | 7d957bd8 | aliguori | |
182 | 7d957bd8 | aliguori | static inline void register_displaychangelistener(DisplayState *ds, DisplayChangeListener *dcl) |
183 | 7d957bd8 | aliguori | { |
184 | 7d957bd8 | aliguori | dcl->next = ds->listeners; |
185 | 7d957bd8 | aliguori | ds->listeners = dcl; |
186 | 7d957bd8 | aliguori | } |
187 | 7d957bd8 | aliguori | |
188 | 87ecb68b | pbrook | static inline void dpy_update(DisplayState *s, int x, int y, int w, int h) |
189 | 87ecb68b | pbrook | { |
190 | 7d957bd8 | aliguori | struct DisplayChangeListener *dcl = s->listeners;
|
191 | 7d957bd8 | aliguori | while (dcl != NULL) { |
192 | 7d957bd8 | aliguori | dcl->dpy_update(s, x, y, w, h); |
193 | 7d957bd8 | aliguori | dcl = dcl->next; |
194 | 7d957bd8 | aliguori | } |
195 | 87ecb68b | pbrook | } |
196 | 87ecb68b | pbrook | |
197 | 7d957bd8 | aliguori | static inline void dpy_resize(DisplayState *s) |
198 | 87ecb68b | pbrook | { |
199 | 7d957bd8 | aliguori | struct DisplayChangeListener *dcl = s->listeners;
|
200 | 7d957bd8 | aliguori | while (dcl != NULL) { |
201 | 7d957bd8 | aliguori | dcl->dpy_resize(s); |
202 | 7d957bd8 | aliguori | dcl = dcl->next; |
203 | 7d957bd8 | aliguori | } |
204 | 87ecb68b | pbrook | } |
205 | 87ecb68b | pbrook | |
206 | 7d957bd8 | aliguori | static inline void dpy_setdata(DisplayState *s) |
207 | 4d3b6f6e | balrog | { |
208 | 7d957bd8 | aliguori | struct DisplayChangeListener *dcl = s->listeners;
|
209 | 7d957bd8 | aliguori | while (dcl != NULL) { |
210 | 7d957bd8 | aliguori | if (dcl->dpy_setdata) dcl->dpy_setdata(s);
|
211 | 7d957bd8 | aliguori | dcl = dcl->next; |
212 | 7d957bd8 | aliguori | } |
213 | 7d957bd8 | aliguori | } |
214 | 7d957bd8 | aliguori | |
215 | 7d957bd8 | aliguori | static inline void dpy_refresh(DisplayState *s) |
216 | 7d957bd8 | aliguori | { |
217 | 7d957bd8 | aliguori | struct DisplayChangeListener *dcl = s->listeners;
|
218 | 7d957bd8 | aliguori | while (dcl != NULL) { |
219 | 7d957bd8 | aliguori | if (dcl->dpy_refresh) dcl->dpy_refresh(s);
|
220 | 7d957bd8 | aliguori | dcl = dcl->next; |
221 | 7d957bd8 | aliguori | } |
222 | 7d957bd8 | aliguori | } |
223 | 7d957bd8 | aliguori | |
224 | 7d957bd8 | aliguori | static inline void dpy_copy(struct DisplayState *s, int src_x, int src_y, |
225 | 7d957bd8 | aliguori | int dst_x, int dst_y, int w, int h) { |
226 | 7d957bd8 | aliguori | struct DisplayChangeListener *dcl = s->listeners;
|
227 | 7d957bd8 | aliguori | while (dcl != NULL) { |
228 | 7d957bd8 | aliguori | if (dcl->dpy_copy)
|
229 | 7d957bd8 | aliguori | dcl->dpy_copy(s, src_x, src_y, dst_x, dst_y, w, h); |
230 | 7d957bd8 | aliguori | else /* TODO */ |
231 | 7d957bd8 | aliguori | dcl->dpy_update(s, dst_x, dst_y, w, h); |
232 | 7d957bd8 | aliguori | dcl = dcl->next; |
233 | 7d957bd8 | aliguori | } |
234 | 7d957bd8 | aliguori | } |
235 | 7d957bd8 | aliguori | |
236 | 7d957bd8 | aliguori | static inline void dpy_fill(struct DisplayState *s, int x, int y, |
237 | 7d957bd8 | aliguori | int w, int h, uint32_t c) { |
238 | 7d957bd8 | aliguori | struct DisplayChangeListener *dcl = s->listeners;
|
239 | 7d957bd8 | aliguori | while (dcl != NULL) { |
240 | 7d957bd8 | aliguori | if (dcl->dpy_fill) dcl->dpy_fill(s, x, y, w, h, c);
|
241 | 7d957bd8 | aliguori | dcl = dcl->next; |
242 | 7d957bd8 | aliguori | } |
243 | 7d957bd8 | aliguori | } |
244 | 7d957bd8 | aliguori | |
245 | 7d957bd8 | aliguori | static inline void dpy_cursor(struct DisplayState *s, int x, int y) { |
246 | 7d957bd8 | aliguori | struct DisplayChangeListener *dcl = s->listeners;
|
247 | 7d957bd8 | aliguori | while (dcl != NULL) { |
248 | 7d957bd8 | aliguori | if (dcl->dpy_text_cursor) dcl->dpy_text_cursor(s, x, y);
|
249 | 7d957bd8 | aliguori | dcl = dcl->next; |
250 | 7d957bd8 | aliguori | } |
251 | 4d3b6f6e | balrog | } |
252 | 4d3b6f6e | balrog | |
253 | 0e1f5a0c | aliguori | static inline int ds_get_linesize(DisplayState *ds) |
254 | 0e1f5a0c | aliguori | { |
255 | 7d957bd8 | aliguori | return ds->surface->linesize;
|
256 | 0e1f5a0c | aliguori | } |
257 | 0e1f5a0c | aliguori | |
258 | 0e1f5a0c | aliguori | static inline uint8_t* ds_get_data(DisplayState *ds) |
259 | 0e1f5a0c | aliguori | { |
260 | 7d957bd8 | aliguori | return ds->surface->data;
|
261 | 0e1f5a0c | aliguori | } |
262 | 0e1f5a0c | aliguori | |
263 | 0e1f5a0c | aliguori | static inline int ds_get_width(DisplayState *ds) |
264 | 0e1f5a0c | aliguori | { |
265 | 7d957bd8 | aliguori | return ds->surface->width;
|
266 | 0e1f5a0c | aliguori | } |
267 | 0e1f5a0c | aliguori | |
268 | 0e1f5a0c | aliguori | static inline int ds_get_height(DisplayState *ds) |
269 | 0e1f5a0c | aliguori | { |
270 | 7d957bd8 | aliguori | return ds->surface->height;
|
271 | 0e1f5a0c | aliguori | } |
272 | 0e1f5a0c | aliguori | |
273 | 0e1f5a0c | aliguori | static inline int ds_get_bits_per_pixel(DisplayState *ds) |
274 | 0e1f5a0c | aliguori | { |
275 | 7d957bd8 | aliguori | return ds->surface->pf.bits_per_pixel;
|
276 | 0e1f5a0c | aliguori | } |
277 | 0e1f5a0c | aliguori | |
278 | 8927bcfd | aliguori | static inline int ds_get_bytes_per_pixel(DisplayState *ds) |
279 | 8927bcfd | aliguori | { |
280 | 7d957bd8 | aliguori | return ds->surface->pf.bytes_per_pixel;
|
281 | 8927bcfd | aliguori | } |
282 | 8927bcfd | aliguori | |
283 | c227f099 | Anthony Liguori | typedef unsigned long console_ch_t; |
284 | c227f099 | Anthony Liguori | static inline void console_write_ch(console_ch_t *dest, uint32_t ch) |
285 | 4d3b6f6e | balrog | { |
286 | 4d3b6f6e | balrog | cpu_to_le32wu((uint32_t *) dest, ch); |
287 | 4d3b6f6e | balrog | } |
288 | 4d3b6f6e | balrog | |
289 | 87ecb68b | pbrook | typedef void (*vga_hw_update_ptr)(void *); |
290 | 87ecb68b | pbrook | typedef void (*vga_hw_invalidate_ptr)(void *); |
291 | 87ecb68b | pbrook | typedef void (*vga_hw_screen_dump_ptr)(void *, const char *); |
292 | c227f099 | Anthony Liguori | typedef void (*vga_hw_text_update_ptr)(void *, console_ch_t *); |
293 | 87ecb68b | pbrook | |
294 | 3023f332 | aliguori | DisplayState *graphic_console_init(vga_hw_update_ptr update, |
295 | 3023f332 | aliguori | vga_hw_invalidate_ptr invalidate, |
296 | 3023f332 | aliguori | vga_hw_screen_dump_ptr screen_dump, |
297 | 3023f332 | aliguori | vga_hw_text_update_ptr text_update, |
298 | 3023f332 | aliguori | void *opaque);
|
299 | 3023f332 | aliguori | |
300 | 87ecb68b | pbrook | void vga_hw_update(void); |
301 | 87ecb68b | pbrook | void vga_hw_invalidate(void); |
302 | 87ecb68b | pbrook | void vga_hw_screen_dump(const char *filename); |
303 | c227f099 | Anthony Liguori | void vga_hw_text_update(console_ch_t *chardata);
|
304 | 87ecb68b | pbrook | |
305 | 87ecb68b | pbrook | int is_graphic_console(void); |
306 | c21bbcfa | balrog | int is_fixedsize_console(void); |
307 | 6ea314d9 | Gerd Hoffmann | CharDriverState *text_console_init(QemuOpts *opts); |
308 | 2796dae0 | aliguori | void text_consoles_set_display(DisplayState *ds);
|
309 | 87ecb68b | pbrook | void console_select(unsigned int index); |
310 | 87ecb68b | pbrook | void console_color_init(DisplayState *ds);
|
311 | 3023f332 | aliguori | void qemu_console_resize(DisplayState *ds, int width, int height); |
312 | 3023f332 | aliguori | void qemu_console_copy(DisplayState *ds, int src_x, int src_y, |
313 | 3023f332 | aliguori | int dst_x, int dst_y, int w, int h); |
314 | 87ecb68b | pbrook | |
315 | 87ecb68b | pbrook | /* sdl.c */
|
316 | 87ecb68b | pbrook | void sdl_display_init(DisplayState *ds, int full_screen, int no_frame); |
317 | 87ecb68b | pbrook | |
318 | 87ecb68b | pbrook | /* cocoa.m */
|
319 | 87ecb68b | pbrook | void cocoa_display_init(DisplayState *ds, int full_screen); |
320 | 87ecb68b | pbrook | |
321 | 87ecb68b | pbrook | /* vnc.c */
|
322 | 87ecb68b | pbrook | void vnc_display_init(DisplayState *ds);
|
323 | 87ecb68b | pbrook | void vnc_display_close(DisplayState *ds);
|
324 | 87ecb68b | pbrook | int vnc_display_open(DisplayState *ds, const char *display); |
325 | 87ecb68b | pbrook | int vnc_display_password(DisplayState *ds, const char *password); |
326 | d96fd29c | Luiz Capitulino | void do_info_vnc_print(Monitor *mon, const QObject *data); |
327 | d96fd29c | Luiz Capitulino | void do_info_vnc(Monitor *mon, QObject **ret_data);
|
328 | f92f8afe | Anthony Liguori | char *vnc_display_local_addr(DisplayState *ds);
|
329 | 87ecb68b | pbrook | |
330 | 4d3b6f6e | balrog | /* curses.c */
|
331 | 4d3b6f6e | balrog | void curses_display_init(DisplayState *ds, int full_screen); |
332 | 4d3b6f6e | balrog | |
333 | 87ecb68b | pbrook | #endif |