Revision afd0b409
b/spice-qemu-char.c | ||
---|---|---|
293 | 293 |
|
294 | 294 |
return chr; |
295 | 295 |
} |
296 |
|
|
297 |
void qemu_spice_register_ports(void) |
|
298 |
{ |
|
299 |
SpiceCharDriver *s; |
|
300 |
|
|
301 |
QLIST_FOREACH(s, &spice_chars, next) { |
|
302 |
if (s->sin.portname == NULL) { |
|
303 |
continue; |
|
304 |
} |
|
305 |
vmc_register_interface(s); |
|
306 |
} |
|
307 |
} |
|
296 | 308 |
#endif |
b/ui/qemu-spice.h | ||
---|---|---|
48 | 48 |
CharDriverState *qemu_chr_open_spice(QemuOpts *opts); |
49 | 49 |
#if SPICE_SERVER_VERSION >= 0x000c02 |
50 | 50 |
CharDriverState *qemu_chr_open_spice_port(QemuOpts *opts); |
51 |
void qemu_spice_register_ports(void); |
|
51 | 52 |
#endif |
52 | 53 |
|
53 | 54 |
#else /* CONFIG_SPICE */ |
b/ui/spice-core.c | ||
---|---|---|
714 | 714 |
g_free(x509_key_file); |
715 | 715 |
g_free(x509_cert_file); |
716 | 716 |
g_free(x509_cacert_file); |
717 |
|
|
718 |
#if SPICE_SERVER_VERSION >= 0x000c02 |
|
719 |
qemu_spice_register_ports(); |
|
720 |
#endif |
|
717 | 721 |
} |
718 | 722 |
|
719 | 723 |
int qemu_spice_add_interface(SpiceBaseInstance *sin) |
Also available in: Unified diff