[waffle] [PATCH 01/29] wayland: add wl_proxy_create wrapper
Emil Velikov
emil.l.velikov at gmail.com
Wed Jan 6 13:27:27 PST 2016
libwayland has broken its ABI by replacing wl_proxy_create +
wl_proxy_marshal with wfl_wl_proxy_marshal_constructor with commit
853c24e6998(client: Introduce functions to allocate and marshal proxies
atomically).
Add the wrapper to keep compatibility with wayland 1.3.90 and earlier.
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
src/waffle/wayland/wayland_wrapper.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/waffle/wayland/wayland_wrapper.h b/src/waffle/wayland/wayland_wrapper.h
index 40a581a..e2c96ca 100644
--- a/src/waffle/wayland/wayland_wrapper.h
+++ b/src/waffle/wayland/wayland_wrapper.h
@@ -66,6 +66,10 @@ int
(*wfl_wl_proxy_add_listener)(struct wl_proxy *proxy,
void (**implementation)(void), void *data);
+struct wl_proxy *
+(*wfl_wl_proxy_create)(struct wl_proxy *factory,
+ const struct wl_interface *interface);
+
void
(*wfl_wl_proxy_marshal)(struct wl_proxy *p, uint32_t opcode, ...);
@@ -90,5 +94,6 @@ struct wl_proxy *
#define wl_display_roundtrip (*wfl_wl_display_roundtrip)
#define wl_proxy_destroy (*wfl_wl_proxy_destroy)
#define wl_proxy_add_listener (*wfl_wl_proxy_add_listener)
+#define wl_proxy_create (*wfl_wl_proxy_create)
#define wl_proxy_marshal (*wfl_wl_proxy_marshal)
#define wl_proxy_marshal_constructor (*wfl_wl_proxy_marshal_constructor)
--
2.6.2
More information about the waffle
mailing list