Revision e25a5822 monitor.c
b/monitor.c | ||
---|---|---|
386 | 386 |
eject_device(bs, force); |
387 | 387 |
} |
388 | 388 |
|
389 |
static void do_change(const char *device, const char *filename) |
|
389 |
static void do_change_block(const char *device, const char *filename)
|
|
390 | 390 |
{ |
391 | 391 |
BlockDriverState *bs; |
392 | 392 |
|
... | ... | |
401 | 401 |
qemu_key_check(bs, filename); |
402 | 402 |
} |
403 | 403 |
|
404 |
static void do_change_vnc(const char *target) |
|
405 |
{ |
|
406 |
if (vnc_display_open(NULL, target) < 0) |
|
407 |
term_printf("could not start VNC server on %s\n", target); |
|
408 |
} |
|
409 |
|
|
410 |
static void do_change(const char *device, const char *target) |
|
411 |
{ |
|
412 |
if (strcmp(device, "vnc") == 0) { |
|
413 |
do_change_vnc(target); |
|
414 |
} else { |
|
415 |
do_change_block(device, target); |
|
416 |
} |
|
417 |
} |
|
418 |
|
|
404 | 419 |
static void do_screen_dump(const char *filename) |
405 | 420 |
{ |
406 | 421 |
vga_hw_screen_dump(filename); |
Also available in: Unified diff