diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2012-08-02 13:20:20 +0300 |
---|---|---|
committer | Yonit Halperin <yhalperi@redhat.com> | 2012-08-27 09:13:00 +0300 |
commit | eb4c95b08b6848ee604497bb66392636341ad1fe (patch) | |
tree | 87a1eaa15aa020ca057a71f808dc077993c86384 /server/spicevmc.c | |
parent | 4f551a3550cf0d54e682e50ccddb446d15732bbe (diff) | |
download | spice-eb4c95b08b6848ee604497bb66392636341ad1fe.tar.gz spice-eb4c95b08b6848ee604497bb66392636341ad1fe.tar.xz spice-eb4c95b08b6848ee604497bb66392636341ad1fe.zip |
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
Diffstat (limited to 'server/spicevmc.c')
-rw-r--r-- | server/spicevmc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/spicevmc.c b/server/spicevmc.c index b96bf9f8..36d901f5 100644 --- a/server/spicevmc.c +++ b/server/spicevmc.c @@ -343,7 +343,8 @@ SpiceCharDeviceState *spicevmc_device_connect(SpiceCharDeviceInstance *sin, FALSE /* migration - TODO? */, FALSE /* handle_acks */, spicevmc_red_channel_client_handle_message, - &channel_cbs); + &channel_cbs, + SPICE_MIGRATE_NEED_FLUSH | SPICE_MIGRATE_NEED_DATA_TRANSFER); red_channel_init_outgoing_messages_window(&state->channel); client_cbs.connect = spicevmc_connect; |