diff options
| author | Giulio Camuffo <giuliocamuffo@gmail.com> | 2013-03-28 14:55:51 +0100 |
|---|---|---|
| committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-04-02 21:07:07 -0400 |
| commit | 88d873ecb971a3f2d0f7420edf9711346f0344a3 (patch) | |
| tree | 15ef97dffde0ad4e6cfd625efc23f50c8e823640 /src/wayland-util.h | |
| parent | server: use the right function pointer type in wl_signal_get (diff) | |
| download | wayland-88d873ecb971a3f2d0f7420edf9711346f0344a3.tar wayland-88d873ecb971a3f2d0f7420edf9711346f0344a3.tar.gz wayland-88d873ecb971a3f2d0f7420edf9711346f0344a3.tar.bz2 wayland-88d873ecb971a3f2d0f7420edf9711346f0344a3.tar.lz wayland-88d873ecb971a3f2d0f7420edf9711346f0344a3.tar.xz wayland-88d873ecb971a3f2d0f7420edf9711346f0344a3.tar.zst wayland-88d873ecb971a3f2d0f7420edf9711346f0344a3.zip | |
server: use void* instead of function pointer for wl_object.implementation
This is needed to make C++ programs that include wayland-server.h build:
C++ does not allow conversions from data pointers to function pointers.
Diffstat (limited to 'src/wayland-util.h')
| -rw-r--r-- | src/wayland-util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wayland-util.h b/src/wayland-util.h index 257a5d1..4728aaa 100644 --- a/src/wayland-util.h +++ b/src/wayland-util.h @@ -56,7 +56,7 @@ struct wl_interface { struct wl_object { const struct wl_interface *interface; - void (* const * implementation)(void); + const void *implementation; uint32_t id; }; |
