server: use void* instead of function pointer for wl_object.implementation
authorGiulio Camuffo <giuliocamuffo@gmail.com>
Thu, 28 Mar 2013 13:55:51 +0000 (14:55 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 3 Apr 2013 01:07:07 +0000 (21:07 -0400)
This is needed to make C++ programs that include wayland-server.h build:
C++ does not allow conversions from data pointers to function pointers.

src/wayland-util.h

index 257a5d1..4728aaa 100644 (file)
@@ -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;
 };