Re: [PATCH 11/15] Change reds_release_agent_data_buffer() to take RedsState arg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Acked-by: Pavel Grunt <pgrunt@xxxxxxxxxx>

On Mon, 2016-01-18 at 16:38 +0000, Frediano Ziglio wrote:
> From: Jonathon Jongsma <jjongsma@xxxxxxxxxx>
> 
> ---
>  server/main-channel.c | 2 +-
>  server/reds.c         | 2 +-
>  server/reds.h         | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/server/main-channel.c b/server/main-channel.c
> index 31e65f0..3315d6c 100644
> --- a/server/main-channel.c
> +++ b/server/main-channel.c
> @@ -1020,7 +1020,7 @@ static void
> main_channel_release_msg_rcv_buf(RedChannelClient *rcc,
>                                                 uint8_t *msg)
>  {
>      if (type == SPICE_MSGC_MAIN_AGENT_DATA) {
> -        reds_release_agent_data_buffer(msg);
> +        reds_release_agent_data_buffer(reds, msg);
>      }
>  }
>  
> diff --git a/server/reds.c b/server/reds.c
> index d480ce3..b183ee1 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -1022,7 +1022,7 @@ uint8_t *reds_get_agent_data_buffer(RedsState
> *reds, MainChannelClient *mcc, siz
>      return dev_state->recv_from_client_buf->buf +
> sizeof(VDIChunkHeader);
>  }
>  
> -void reds_release_agent_data_buffer(uint8_t *buf)
> +void reds_release_agent_data_buffer(RedsState *reds, uint8_t *buf)
>  {
>      VDIPortState *dev_state = &reds->agent_state;
>  
> diff --git a/server/reds.h b/server/reds.h
> index 2659493..0294333 100644
> --- a/server/reds.h
> +++ b/server/reds.h
> @@ -96,8 +96,8 @@ void reds_update_stat_value(uint32_t value);
>  
>  void reds_on_main_agent_start(RedsState *reds, MainChannelClient
> *mcc, uint32_t num_tokens);
>  void reds_on_main_agent_tokens(MainChannelClient *mcc, uint32_t
> num_tokens);
> -void reds_release_agent_data_buffer(uint8_t *buf);
>  uint8_t *reds_get_agent_data_buffer(RedsState *reds,
> MainChannelClient *mcc, size_t size);
> +void reds_release_agent_data_buffer(RedsState *reds, uint8_t *buf);
>  void reds_on_main_agent_data(MainChannelClient *mcc, void *message,
> size_t size);
>  void reds_on_main_migrate_connected(int seamless); //should be
> called when all the clients
>                                                     // are connected
> to the target
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]