[Spice-devel] [PATCH 04/15] Change reds_on_client_semi_seamless_migrate_complete() to take RedsState arg
Pavel Grunt
pgrunt at redhat.com
Wed Jan 20 06:00:04 PST 2016
On Wed, 2016-01-20 at 13:25 +0000, Frediano Ziglio wrote:
> From: Jonathon Jongsma <jjongsma at redhat.com>
>
Acked-by: Pavel Grunt <pgrunt at redhat.com>
> ---
> server/red-channel.c | 2 +-
> server/reds.c | 2 +-
> server/reds.h | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/server/red-channel.c b/server/red-channel.c
> index efe889a..2cf190c 100644
> --- a/server/red-channel.c
> +++ b/server/red-channel.c
> @@ -2201,7 +2201,7 @@ void
> red_client_semi_seamless_migrate_complete(RedClient *client)
> }
> }
> pthread_mutex_unlock(&client->lock);
> - reds_on_client_semi_seamless_migrate_complete(client);
> + reds_on_client_semi_seamless_migrate_complete(reds, client);
> }
>
> /* should be called only from the main thread */
> diff --git a/server/reds.c b/server/reds.c
> index 5b512d3..77e9bd6 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -1852,7 +1852,7 @@ void
> reds_on_client_seamless_migrate_complete(RedsState *reds, RedClient
> *client
> main_channel_migrate_dst_complete(red_client_get_main(client));
> }
>
> -void reds_on_client_semi_seamless_migrate_complete(RedClient
> *client)
> +void reds_on_client_semi_seamless_migrate_complete(RedsState *reds,
> RedClient *client)
> {
> MainChannelClient *mcc;
>
> diff --git a/server/reds.h b/server/reds.h
> index ca712e4..3f12217 100644
> --- a/server/reds.h
> +++ b/server/reds.h
> @@ -108,7 +108,7 @@ void reds_on_main_mouse_mode_request(RedsState
> *reds, void *message, size_t size
> /* migration dest side: returns whether it can support seamless
> migration
> * with the given src migration protocol version */
> int reds_on_migrate_dst_set_seamless(RedsState *reds,
> MainChannelClient *mcc, uint32_t src_version);
> -void reds_on_client_semi_seamless_migrate_complete(RedClient
> *client);
> +void reds_on_client_semi_seamless_migrate_complete(RedsState *reds,
> RedClient *client);
> void reds_on_client_seamless_migrate_complete(RedsState *reds,
> RedClient *client);
> void reds_on_main_channel_migrate(RedsState *reds, MainChannelClient
> *mcc);
> void reds_on_char_device_state_destroy(SpiceCharDeviceState *dev);
More information about the Spice-devel
mailing list