[Spice-devel] [PATCH 11/24] server/red_channel: unstatic red_channel_push (for red_worker)

Marc-André Lureau marcandre.lureau at gmail.com
Wed Feb 2 10:51:54 PST 2011


ack

On Wed, Jan 19, 2011 at 7:07 PM, Alon Levy <alevy at redhat.com> wrote:
> ---
>  server/red_channel.c |    3 +--
>  server/red_channel.h |    6 ++++++
>  2 files changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/server/red_channel.c b/server/red_channel.c
> index 92e60fe..2051228 100644
> --- a/server/red_channel.c
> +++ b/server/red_channel.c
> @@ -29,7 +29,6 @@
>  #include "stat.h"
>  #include "red_channel.h"
>
> -static void red_channel_push(RedChannel *channel);
>  static PipeItem *red_channel_pipe_get(RedChannel *channel);
>  static void red_channel_pipe_clear(RedChannel *channel);
>  static void red_channel_event(int fd, int event, void *data);
> @@ -467,7 +466,7 @@ void red_channel_begin_send_message(RedChannel *channel)
>     red_channel_send(channel);
>  }
>
> -static void red_channel_push(RedChannel *channel)
> +void red_channel_push(RedChannel *channel)
>  {
>     PipeItem *pipe_item;
>
> diff --git a/server/red_channel.h b/server/red_channel.h
> index 2392d80..310db64 100644
> --- a/server/red_channel.h
> +++ b/server/red_channel.h
> @@ -225,4 +225,10 @@ void red_channel_pipe_add_tail(RedChannel *channel, PipeItem *item);
>  /* for types that use this routine -> the pipe item should be freed */
>  void red_channel_pipe_add_type(RedChannel *channel, int pipe_item_type);
>
> +// TODO: unstaticed for display/cursor channels. they do some specific pushes not through
> +// adding elements or on events. but not sure if this is actually required (only result
> +// should be that they ""try"" a little harder, but if the event system is correct it
> +// should not make any difference.
> +void red_channel_push(RedChannel *channel);
> +
>  #endif
> --
> 1.7.3.4
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>



-- 
Marc-André Lureau


More information about the Spice-devel mailing list