mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-03 09:01:42 -05:00
server: use the right function pointer type in wl_signal_get
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.
This commit is contained in:
parent
3bda215130
commit
6ca428edc8
1 changed files with 1 additions and 1 deletions
|
|
@ -161,7 +161,7 @@ wl_signal_add(struct wl_signal *signal, struct wl_listener *listener)
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline struct wl_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;
|
struct wl_listener *l;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue