[Spice-devel] [PATCH 05/14] rename red_channel_peer_ function to red_channel_client_

Pavel Grunt pgrunt at redhat.com
Thu May 5 09:27:15 UTC 2016


Hi,

there is more functions using peer in name, but rcc as a parameter. Would you
mind changing all of them for consitency.

Pavel

On Tue, 2016-05-03 at 15:00 -0500, Jonathon Jongsma wrote:
> Use consistent naming
> ---
>  server/red-channel.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/server/red-channel.c b/server/red-channel.c
> index 64c61ca..898036a 100644
> --- a/server/red-channel.c
> +++ b/server/red-channel.c
> @@ -597,7 +597,7 @@ static inline void
> red_channel_client_release_sent_item(RedChannelClient *rcc)
>      }
>  }
>  
> -static void red_channel_peer_on_out_msg_done(void *opaque)
> +static void red_channel_client_on_out_msg_done(void *opaque)
>  {
>      RedChannelClient *rcc = (RedChannelClient *)opaque;
>      int fd;
> @@ -1060,7 +1060,7 @@ RedChannel *red_channel_create(int size,
>      channel->outgoing_cb.on_block = red_channel_client_peer_on_out_block;
>      channel->outgoing_cb.on_error =
>          (on_outgoing_error_proc)red_channel_client_default_peer_on_error;
> -    channel->outgoing_cb.on_msg_done = red_channel_peer_on_out_msg_done;
> +    channel->outgoing_cb.on_msg_done = red_channel_client_on_out_msg_done;
>      channel->outgoing_cb.on_output = red_channel_client_on_output;
>  
>      client_cbs.connect = red_channel_client_default_connect;


More information about the Spice-devel mailing list