Revision 376253ec vnc.c
b/vnc.c | ||
---|---|---|
24 | 24 |
*/ |
25 | 25 |
|
26 | 26 |
#include "qemu-common.h" |
27 |
#include "monitor.h" |
|
27 | 28 |
#include "console.h" |
28 | 29 |
#include "sysemu.h" |
29 | 30 |
#include "qemu_socket.h" |
... | ... | |
166 | 167 |
static VncDisplay *vnc_display; /* needed for info vnc */ |
167 | 168 |
static DisplayChangeListener *dcl; |
168 | 169 |
|
169 |
void do_info_vnc(void)
|
|
170 |
void do_info_vnc(Monitor *mon)
|
|
170 | 171 |
{ |
171 | 172 |
if (vnc_display == NULL || vnc_display->display == NULL) |
172 |
term_printf("VNC server disabled\n");
|
|
173 |
monitor_printf(mon, "VNC server disabled\n");
|
|
173 | 174 |
else { |
174 |
term_printf("VNC server active on: ");
|
|
175 |
term_print_filename(vnc_display->display);
|
|
176 |
term_printf("\n");
|
|
175 |
monitor_printf(mon, "VNC server active on: ");
|
|
176 |
monitor_print_filename(mon, vnc_display->display);
|
|
177 |
monitor_printf(mon, "\n");
|
|
177 | 178 |
|
178 | 179 |
if (vnc_display->clients == NULL) |
179 |
term_printf("No client connected\n");
|
|
180 |
monitor_printf(mon, "No client connected\n");
|
|
180 | 181 |
else |
181 |
term_printf("Client connected\n");
|
|
182 |
monitor_printf(mon, "Client connected\n");
|
|
182 | 183 |
} |
183 | 184 |
} |
184 | 185 |
|
... | ... | |
807 | 808 |
|
808 | 809 |
static void audio_add(VncState *vs) |
809 | 810 |
{ |
811 |
Monitor *mon = cur_mon; |
|
810 | 812 |
struct audio_capture_ops ops; |
811 | 813 |
|
812 | 814 |
if (vs->audio_cap) { |
813 |
term_printf ("audio already running\n");
|
|
815 |
monitor_printf(mon, "audio already running\n");
|
|
814 | 816 |
return; |
815 | 817 |
} |
816 | 818 |
|
... | ... | |
820 | 822 |
|
821 | 823 |
vs->audio_cap = AUD_add_capture(NULL, &vs->as, &ops, vs); |
822 | 824 |
if (!vs->audio_cap) { |
823 |
term_printf ("Failed to add audio capture\n");
|
|
825 |
monitor_printf(mon, "Failed to add audio capture\n");
|
|
824 | 826 |
} |
825 | 827 |
} |
826 | 828 |
|
Also available in: Unified diff