From eb4c95b08b6848ee604497bb66392636341ad1fe Mon Sep 17 00:00:00 2001 From: Yonit Halperin Date: Thu, 2 Aug 2012 13:20:20 +0300 Subject: red_channel: handle sending SPICE_MSG_MIGRATE The relevant code is common to all channels. The patch also contains a fix to the return value for handle_migrate_data callback: s/uint64_t/int --- server/main_channel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'server/main_channel.c') diff --git a/server/main_channel.c b/server/main_channel.c index 61230682..63989657 100644 --- a/server/main_channel.c +++ b/server/main_channel.c @@ -475,7 +475,7 @@ static uint64_t main_channel_handle_migrate_data_get_serial(RedChannelClient *ba return data->serial; } -static uint64_t main_channel_handle_migrate_data(RedChannelClient *base, +static int main_channel_handle_migrate_data(RedChannelClient *base, uint32_t size, void *message) { MainChannelClient *mcc = SPICE_CONTAINEROF(base, MainChannelClient, base); @@ -1138,7 +1138,8 @@ MainChannel* main_channel_init(void) FALSE, FALSE, /* handle_acks */ spice_get_client_channel_parser(SPICE_CHANNEL_MAIN, NULL), main_channel_handle_parsed, - &channel_cbs); + &channel_cbs, + SPICE_MIGRATE_NEED_FLUSH | SPICE_MIGRATE_NEED_DATA_TRANSFER); spice_assert(channel); red_channel_set_cap(channel, SPICE_MAIN_CAP_SEMI_SEAMLESS_MIGRATE); -- cgit