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