mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-30 11:11:05 -04:00
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.
This commit is contained in:
parent
6ca428edc8
commit
88d873ecb9
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ struct wl_interface {
|
||||||
|
|
||||||
struct wl_object {
|
struct wl_object {
|
||||||
const struct wl_interface *interface;
|
const struct wl_interface *interface;
|
||||||
void (* const * implementation)(void);
|
const void *implementation;
|
||||||
uint32_t id;
|
uint32_t id;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue