projects
/
profile
/
ivi
/
wayland.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ca428e
)
server: use void* instead of function pointer for wl_object.implementation
author
Giulio Camuffo
<giuliocamuffo@gmail.com>
Thu, 28 Mar 2013 13:55:51 +0000
(14:55 +0100)
committer
Kristian 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
patch
|
blob
|
history
diff --git
a/src/wayland-util.h
b/src/wayland-util.h
index
257a5d1
..
4728aaa
100644
(file)
--- 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;
};