[Spice-devel] [PATCH spice-gtk 06/16] channel-main: Add a spice_main_channel_reset_agent helper function
Christophe Fergeau
cfergeau at redhat.com
Mon Apr 8 09:25:35 PDT 2013
On Fri, Mar 29, 2013 at 12:40:18PM +0100, Hans de Goede wrote:
> Signed-off-by: Hans de Goede <hdegoede at redhat.com>
> ---
> gtk/channel-main.c | 18 +++++++++++++++---
> 1 file changed, 15 insertions(+), 3 deletions(-)
>
> diff --git a/gtk/channel-main.c b/gtk/channel-main.c
> index 4e766d3..672fbcf 100644
> --- a/gtk/channel-main.c
> +++ b/gtk/channel-main.c
> @@ -327,22 +327,34 @@ static void spice_channel_iterate_write(SpiceChannel *channel)
> }
>
> /* main or coroutine context */
> -static void spice_main_channel_reset(SpiceChannel *channel, gboolean migrating)
> +static void spice_main_channel_reset_agent(SpiceMainChannel *channel)
> {
> - SpiceMainChannelPrivate *c = SPICE_MAIN_CHANNEL(channel)->priv;
> + SpiceMainChannelPrivate *c = channel->priv;
>
> c->agent_connected = FALSE;
> c->agent_caps_received = FALSE;
> c->agent_display_config_sent = FALSE;
> - c->agent_tokens = 0;
> c->agent_msg_pos = 0;
> g_free(c->agent_msg_data);
> c->agent_msg_data = NULL;
> c->agent_msg_size = 0;
> +}
> +
> +/* main or coroutine context */
> +static void spice_main_channel_reset(SpiceChannel *channel, gboolean migrating)
> +{
> + SpiceMainChannelPrivate *c = SPICE_MAIN_CHANNEL(channel)->priv;
>
> + /* This is not part of reset_agent, since the spice-server expects any
> + pending multi-chunk messages to be completed by the client, even after
> + it has send an agent-disconnected msg as that is what the original
s/send/sent/
ACK.
Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20130408/dfac22e1/attachment.pgp>
More information about the Spice-devel
mailing list