[PATCH weston 1/5] window: make window_{create,set}_surface private

Kristian Høgsberg hoegsberg at gmail.com
Mon Nov 19 12:57:08 PST 2012


On Mon, Nov 19, 2012 at 03:32:47PM +0200, Pekka Paalanen wrote:
> I do not think these are meant to be called by the applications
> directly. Applications certainly do not have to call them.

These all look good, thanks.

Kristian

> Signed-off-by: Pekka Paalanen <ppaalanen at gmail.com>
> ---
>  clients/window.c |    4 ++--
>  clients/window.h |    6 ------
>  2 files changed, 2 insertions(+), 8 deletions(-)
> 
> diff --git a/clients/window.c b/clients/window.c
> index 288a526..f15e8c1 100644
> --- a/clients/window.c
> +++ b/clients/window.c
> @@ -889,7 +889,7 @@ window_flush(struct window *window)
>  		window_attach_surface(window);
>  }
>  
> -void
> +static void
>  window_set_surface(struct window *window, cairo_surface_t *surface)
>  {
>  	cairo_surface_reference(surface);
> @@ -928,7 +928,7 @@ window_get_display(struct window *window)
>  	return window->display;
>  }
>  
> -void
> +static void
>  window_create_surface(struct window *window)
>  {
>  	cairo_surface_t *surface;
> diff --git a/clients/window.h b/clients/window.h
> index 84846ff..b7aca84 100644
> --- a/clients/window.h
> +++ b/clients/window.h
> @@ -273,12 +273,6 @@ window_get_wl_shell_surface(struct window *window);
>  void
>  window_flush(struct window *window);
>  
> -void
> -window_set_surface(struct window *window, cairo_surface_t *surface);
> -
> -void
> -window_create_surface(struct window *window);
> -
>  enum window_buffer_type {
>  	WINDOW_BUFFER_TYPE_EGL_WINDOW,
>  	WINDOW_BUFFER_TYPE_SHM,
> -- 
> 1.7.8.6
> 


More information about the wayland-devel mailing list