diff options
| author | Giulio Camuffo <giuliocamuffo@gmail.com> | 2013-04-02 22:29:46 +0200 |
|---|---|---|
| committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-04-02 17:11:44 -0400 |
| commit | 6ca428edc8344c800be3369da3ac8d91fe75c175 (patch) | |
| tree | a7b326a9411789f6bec15d5b2c76d691b800fadb /src | |
| parent | docs: Add information about serials and timestamps (diff) | |
| download | wayland-6ca428edc8344c800be3369da3ac8d91fe75c175.tar wayland-6ca428edc8344c800be3369da3ac8d91fe75c175.tar.gz wayland-6ca428edc8344c800be3369da3ac8d91fe75c175.tar.bz2 wayland-6ca428edc8344c800be3369da3ac8d91fe75c175.tar.lz wayland-6ca428edc8344c800be3369da3ac8d91fe75c175.tar.xz wayland-6ca428edc8344c800be3369da3ac8d91fe75c175.tar.zst wayland-6ca428edc8344c800be3369da3ac8d91fe75c175.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wayland-server.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
