[Spice-devel] [PATCH 03/15] Change reds_on_client_seamless_migrate_complete() to take RedsState arg
Pavel Grunt
pgrunt at redhat.com
Wed Jan 20 06:00:01 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/main-dispatcher.c | 4 ++--
> server/reds.c | 2 +-
> server/reds.h | 2 +-
> 3 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/server/main-dispatcher.c b/server/main-dispatcher.c
> index db87e05..01290d2 100644
> --- a/server/main-dispatcher.c
> +++ b/server/main-dispatcher.c
> @@ -118,7 +118,7 @@ static void
> main_dispatcher_handle_migrate_complete(void *opaque,
> {
> MainDispatcherMigrateSeamlessDstCompleteMessage *mig_complete =
> payload;
>
> - reds_on_client_seamless_migrate_complete(mig_complete->client);
> + reds_on_client_seamless_migrate_complete(reds, mig_complete-
> >client);
> red_client_unref(mig_complete->client);
> }
>
> @@ -145,7 +145,7 @@ void
> main_dispatcher_seamless_migrate_dst_complete(RedClient *client)
> MainDispatcherMigrateSeamlessDstCompleteMessage msg;
>
> if (pthread_self() == main_dispatcher.base.self) {
> - reds_on_client_seamless_migrate_complete(client);
> + reds_on_client_seamless_migrate_complete(reds, client);
> return;
> }
>
> diff --git a/server/reds.c b/server/reds.c
> index 1542123..5b512d3 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -1842,7 +1842,7 @@ int reds_on_migrate_dst_set_seamless(RedsState
> *reds, MainChannelClient *mcc, ui
> return reds->dst_do_seamless_migrate;
> }
>
> -void reds_on_client_seamless_migrate_complete(RedClient *client)
> +void reds_on_client_seamless_migrate_complete(RedsState *reds,
> RedClient *client)
> {
> spice_debug(NULL);
> if (!reds_find_client(reds, client)) {
> diff --git a/server/reds.h b/server/reds.h
> index 1f1b966..ca712e4 100644
> --- a/server/reds.h
> +++ b/server/reds.h
> @@ -109,7 +109,7 @@ void reds_on_main_mouse_mode_request(RedsState
> *reds, void *message, size_t size
> * 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_seamless_migrate_complete(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