No subject


Mon May 2 16:12:28 PDT 2011


On Tue, Apr 26, 2011 at 12:55 PM, Alon Levy <alevy at redhat.com> wrote:
> ---
> =A0server/red_channel.c | =A0 15 +++++++++++++++
> =A0server/red_channel.h | =A0 =A04 ++++
> =A02 files changed, 19 insertions(+), 0 deletions(-)
>
> diff --git a/server/red_channel.c b/server/red_channel.c
> index 4625158..34916fd 100644
> --- a/server/red_channel.c
> +++ b/server/red_channel.c
> @@ -1100,3 +1100,18 @@ void red_channel_pipes_new_add_tail(RedChannel *ch=
annel, new_pipe_item_t creator
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0red_channel_client_pipe_add_tail_no_push);
> =A0 =A0 red_channel_push(channel);
> =A0}
> +
> +uint32_t red_channel_max_pipe_size(RedChannel *channel)
> +{
> + =A0 =A0return channel->rcc ? channel->rcc->pipe_size : 0;
> +}
> +
> +uint32_t red_channel_min_pipe_size(RedChannel *channel)
> +{
> + =A0 =A0return channel->rcc ? channel->rcc->pipe_size : 0;
> +}
> +
> +uint32_t red_channel_sum_pipes_size(RedChannel *channel)
> +{
> + =A0 =A0return channel->rcc ? channel->rcc->pipe_size : 0;
> +}
> diff --git a/server/red_channel.h b/server/red_channel.h
> index 261aa60..38043f1 100644
> --- a/server/red_channel.h
> +++ b/server/red_channel.h
> @@ -367,6 +367,10 @@ RedClient *red_channel_client_get_client(RedChannelC=
lient *rcc);
> =A0* not via the below accessor and direct header manipulation. */
> =A0SpiceDataHeader *red_channel_client_get_header(RedChannelClient *rcc);
>
> +uint32_t red_channel_max_pipe_size(RedChannel *channel);
> +uint32_t red_channel_min_pipe_size(RedChannel *channel);
> +uint32_t red_channel_sum_pipes_size(RedChannel *channel);
> +
> =A0/* apply given function to all connected clients */
> =A0typedef void (*channel_client_visitor)(RedChannelClient *rcc);
> =A0typedef void (*channel_client_visitor_data)(RedChannelClient *rcc, voi=
d *data);
> --
> 1.7.4.4
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>



--=20
Marc-Andr=E9 Lureau


More information about the Spice-devel mailing list