[PATCH weston 04/17] xwayland: Staticize weston_wm_set_selection and read_and_dump_property

Kristian Høgsberg hoegsberg at gmail.com
Fri Nov 30 14:27:20 PST 2012


On Fri, Nov 30, 2012 at 05:19:59PM -0200, Tiago Vignatti wrote:

Committed.
Kristian

> Signed-off-by: Tiago Vignatti <tiago.vignatti at intel.com>
> ---
>  src/xwayland/selection.c      |    2 +-
>  src/xwayland/window-manager.c |    2 +-
>  src/xwayland/xwayland.h       |    6 ------
>  3 files changed, 2 insertions(+), 8 deletions(-)
> 
> diff --git a/src/xwayland/selection.c b/src/xwayland/selection.c
> index cd49289..edc7ce6 100644
> --- a/src/xwayland/selection.c
> +++ b/src/xwayland/selection.c
> @@ -616,7 +616,7 @@ weston_wm_handle_selection_event(struct weston_wm *wm,
>  	return 0;
>  }
>  
> -void
> +static void
>  weston_wm_set_selection(struct wl_listener *listener, void *data)
>  {
>  	struct wl_seat *seat = data;
> diff --git a/src/xwayland/window-manager.c b/src/xwayland/window-manager.c
> index 9f01c82..303ef15 100644
> --- a/src/xwayland/window-manager.c
> +++ b/src/xwayland/window-manager.c
> @@ -268,7 +268,7 @@ dump_property(struct weston_wm *wm,
>  	}
>  }
>  
> -void
> +static void
>  read_and_dump_property(struct weston_wm *wm,
>  		       xcb_window_t window, xcb_atom_t property)
>  {
> diff --git a/src/xwayland/xwayland.h b/src/xwayland/xwayland.h
> index dde1bf6..2230b97 100644
> --- a/src/xwayland/xwayland.h
> +++ b/src/xwayland/xwayland.h
> @@ -128,9 +128,6 @@ struct weston_wm {
>  void
>  dump_property(struct weston_wm *wm, xcb_atom_t property,
>  	      xcb_get_property_reply_t *reply);
> -void
> -read_and_dump_property(struct weston_wm *wm,
> -		       xcb_window_t window, xcb_atom_t property);
>  
>  const char *
>  get_atom_name(xcb_connection_t *c, xcb_atom_t atom);
> @@ -141,9 +138,6 @@ int
>  weston_wm_handle_selection_event(struct weston_wm *wm,
>  				 xcb_generic_event_t *event);
>  
> -void
> -weston_wm_set_selection(struct wl_listener *listener, void *data);
> -
>  extern const struct xserver_interface xserver_implementation;
>  
>  struct weston_wm *
> -- 
> 1.7.9.5
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list