]> git.proxmox.com Git - qemu.git/blobdiff - spice-qemu-char.c
target-openrisc: Update OpenRISCCPU to QOM realizefn
[qemu.git] / spice-qemu-char.c
index 4eb85ae7984ed02c0371ebe1f89cc203b657891d..a4d7de8c4f0328054f373a01a930bf4b335dc2f1 100644 (file)
@@ -1,11 +1,12 @@
 #include "config-host.h"
 #include "trace.h"
 #include "ui/qemu-spice.h"
+#include "char/char.h"
 #include <spice.h>
 #include <spice-experimental.h>
 #include <spice/protocol.h>
 
-#include "osdep.h"
+#include "qemu/osdep.h"
 
 #define dprintf(_scd, _level, _fmt, ...)                                \
     do {                                                                \
@@ -293,4 +294,16 @@ CharDriverState *qemu_chr_open_spice_port(QemuOpts *opts)
 
     return chr;
 }
+
+void qemu_spice_register_ports(void)
+{
+    SpiceCharDriver *s;
+
+    QLIST_FOREACH(s, &spice_chars, next) {
+        if (s->sin.portname == NULL) {
+            continue;
+        }
+        vmc_register_interface(s);
+    }
+}
 #endif