display-channel: Inline red_migrate_display function

The only caller only called that function.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
Frediano Ziglio 2019-03-21 00:04:43 +00:00
parent ee5cdb7e2f
commit 62bc14d81d

View File

@ -2633,8 +2633,10 @@ static void display_channel_disconnect(RedChannelClient *rcc)
red_channel_client_disconnect(rcc);
}
static void red_migrate_display(DisplayChannel *display, RedChannelClient *rcc)
static void display_channel_migrate(RedChannelClient *rcc)
{
DisplayChannel *display = DISPLAY_CHANNEL(red_channel_client_get_channel(rcc));
/* We need to stop the streams, and to send upgrade_items to the client.
* Otherwise, (1) the client might display lossy regions that we don't track
* (streams are not part of the migration data) (2) streams_timeout may occur
@ -2651,12 +2653,6 @@ static void red_migrate_display(DisplayChannel *display, RedChannelClient *rcc)
}
}
static void display_channel_migrate(RedChannelClient *rcc)
{
DisplayChannel *display = DISPLAY_CHANNEL(red_channel_client_get_channel(rcc));
red_migrate_display(display, rcc);
}
void display_channel_set_image_compression(DisplayChannel *display,
SpiceImageCompression image_compression)
{