aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-10-14 14:11:17 +0200
committerGerd Hoffmann <kraxel@redhat.com>2020-10-15 11:14:40 +0200
commit93ab5844b2cd5367966d7b5bae154e0d3303b504 (patch)
treefdc01b73d9999cb0970d77105fd24a44b25efceb /include
parent70122d62302c97bcd205956a544b8e79f2a4a50f (diff)
downloadqemu-93ab5844b2cd5367966d7b5bae154e0d3303b504.zip
qemu-93ab5844b2cd5367966d7b5bae154e0d3303b504.tar.gz
qemu-93ab5844b2cd5367966d7b5bae154e0d3303b504.tar.bz2
chardev/spice: simplify chardev setup
Initialize spice before chardevs. That allows to register the spice chardevs directly in the init function and removes the need to maintain a linked list of chardevs just for registration. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20201014121120.13482-5-kraxel@redhat.com
Diffstat (limited to 'include')
-rw-r--r--include/chardev/spice.h1
-rw-r--r--include/ui/qemu-spice.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/include/chardev/spice.h b/include/chardev/spice.h
index 1115502..58e5b72 100644
--- a/include/chardev/spice.h
+++ b/include/chardev/spice.h
@@ -13,7 +13,6 @@ struct SpiceChardev {
bool blocked;
const uint8_t *datapos;
int datalen;
- QLIST_ENTRY(SpiceChardev) next;
};
typedef struct SpiceChardev SpiceChardev;
diff --git a/include/ui/qemu-spice.h b/include/ui/qemu-spice.h
index 12474d8..0e8ec3f 100644
--- a/include/ui/qemu-spice.h
+++ b/include/ui/qemu-spice.h
@@ -45,7 +45,6 @@ int qemu_spice_migrate_info(const char *hostname, int port, int tls_port,
#else
#define SPICE_NEEDS_SET_MM_TIME 0
#endif
-void qemu_spice_register_ports(void);
#else /* CONFIG_SPICE */