[PATCH wayland] server: use the right function pointer type in wl_signal_get

Kristian Høgsberg hoegsberg at gmail.com
Tue Apr 2 14:12:01 PDT 2013


On Tue, Apr 02, 2013 at 10:29:46PM +0200, Giulio Camuffo wrote:
> use the wl_notify_func type, and not void *, or else wl_signal_get
> will not be usable by a c++ plugin because it will not cast
> void * to a function pointer.
> ---
>  src/wayland-server.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

That looks better, thanks.

Kristian

> diff --git a/src/wayland-server.h b/src/wayland-server.h
> index 38b8303..e5a862a 100644
> --- a/src/wayland-server.h
> +++ b/src/wayland-server.h
> @@ -161,7 +161,7 @@ wl_signal_add(struct wl_signal *signal, struct wl_listener *listener)
>  }
>  
>  static inline struct wl_listener *
> -wl_signal_get(struct wl_signal *signal, void *notify)
> +wl_signal_get(struct wl_signal *signal, wl_notify_func_t notify)
>  {
>  	struct wl_listener *l;
>  
> -- 
> 1.8.2
> 
> _______________________________________________
> 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