summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2015-01-16 16:54:34 -0600
committerFabiano FidĂȘncio <fidencio@redhat.com>2015-02-23 23:00:43 +0100
commit9ecf060e79c2624caec2a687efc684e88e44f3d2 (patch)
treeeba4d0372cc18c674eafca54269b40c16a153c4b
parent0e13176aca3a9430db1e4a42de2b00e607315448 (diff)
downloadspice-9ecf060e79c2624caec2a687efc684e88e44f3d2.tar.gz
spice-9ecf060e79c2624caec2a687efc684e88e44f3d2.tar.xz
spice-9ecf060e79c2624caec2a687efc684e88e44f3d2.zip
Change reds_link_mig_target_channels() to take RedsState arg
-rw-r--r--server/reds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/reds.c b/server/reds.c
index 14eb337b..1c092a21 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -1721,7 +1721,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;
@@ -1767,7 +1767,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;
}
@@ -1794,7 +1794,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);
}