[Spice-devel] [PATCH 01/15] Change reds_link_mig_target_channels() to take RedsState arg
Frediano Ziglio
fziglio at redhat.com
Wed Jan 20 05:25:13 PST 2016
From: Jonathon Jongsma <jjongsma at redhat.com>
---
server/reds.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/server/reds.c b/server/reds.c
index 0e31b59..52fcb5e 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -1791,7 +1791,7 @@ static void reds_channel_do_link(RedChannel *channel, RedClient *client,
* not lose any data, we activate the target channels before
* migration completes, as soon as we receive SPICE_MSGC_MAIN_MIGRATE_DST_DO_SEAMLESS
*/
-static int reds_link_mig_target_channels(RedClient *client)
+static int reds_link_mig_target_channels(RedsState *reds, RedClient *client)
{
RedsMigTargetClient *mig_client;
RingItem *item;
@@ -1837,7 +1837,7 @@ int reds_on_migrate_dst_set_seamless(MainChannelClient *mcc, uint32_t src_versio
red_client_set_migration_seamless(rcc->client);
/* linking all the channels that have been connected before migration handshake */
- reds->dst_do_seamless_migrate = reds_link_mig_target_channels(rcc->client);
+ reds->dst_do_seamless_migrate = reds_link_mig_target_channels(reds, rcc->client);
}
return reds->dst_do_seamless_migrate;
}
@@ -1864,7 +1864,7 @@ void reds_on_client_semi_seamless_migrate_complete(RedClient *client)
reds->mouse_mode, reds->is_client_mouse_allowed,
reds_get_mm_time() - MM_TIME_DELTA,
red_dispatcher_qxl_ram_size());
- reds_link_mig_target_channels(client);
+ reds_link_mig_target_channels(reds, client);
main_channel_migrate_dst_complete(mcc);
}
--
2.4.3
More information about the Spice-devel
mailing list