summaryrefslogtreecommitdiff
path: root/server/reds-private.h
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2015-02-23 18:37:52 +0100
committerFrediano Ziglio <fziglio@redhat.com>2016-03-09 17:33:49 +0000
commit30f718aae20170d851ddf9f8626b2ed37eb5d862 (patch)
treedee9636c06b89e9a9dd95b8877d1d9ca0b0c21fe /server/reds-private.h
parente5c89b0b6035e0af79beb13c23a27d32cbf13df1 (diff)
Replace RedsPrivate::char_devs_state with a GList
The code was introducing an intermediate SpiceCharDevStateItem type to hold linked list elements, resulting in a memory handling behaviour very similar to a GList. Using GList directly makes the code shorter and more readable. Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'server/reds-private.h')
-rw-r--r--server/reds-private.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/server/reds-private.h b/server/reds-private.h
index 6bd68789..b2afc6be 100644
--- a/server/reds-private.h
+++ b/server/reds-private.h
@@ -125,11 +125,6 @@ typedef struct RedsMigWaitDisconnectClient {
RedClient *client;
} RedsMigWaitDisconnectClient;
-typedef struct SpiceCharDeviceStateItem {
- RingItem link;
- SpiceCharDeviceState *st;
-} SpiceCharDeviceStateItem;
-
/* Intermediate state for on going monitors config message from a single
* client, being passed to the guest */
typedef struct RedsClientMonitorsConfig {
@@ -187,7 +182,7 @@ struct RedsState {
SpiceTimer *mig_timer;
int vm_running;
- Ring char_devs_states; /* list of SpiceCharDeviceStateItem */
+ GList *char_devices; /* list of SpiceCharDeviceState */
int seamless_migration_enabled; /* command line arg */
int keepalive_timeout;