summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-07-27 16:19:34 -0500
committerDerek Foreman <derekf@osg.samsung.com>2016-07-29 16:45:38 -0500
commit6548fae9c6408aa157a27b476510423f55499a35 (patch)
tree4e5631e965d4591397fc23f168df0f4f082553d0
parentf30ad5a48b72090da2bacff3cde6c66a9ba471d0 (diff)
downloadenlightenment-6548fae9c6408aa157a27b476510423f55499a35.tar.gz
Add versions to wayland extension setup macros
When we have a local extension with a version that isn't 1 this will become necessary.
-rw-r--r--src/bin/e_comp_wl_extensions.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/e_comp_wl_extensions.c b/src/bin/e_comp_wl_extensions.c
index 4f5fac89d3..f0e60ece41 100644
--- a/src/bin/e_comp_wl_extensions.c
+++ b/src/bin/e_comp_wl_extensions.c
@@ -240,11 +240,11 @@ GLOBAL_BIND_CB(screenshooter, screenshooter_interface)
GLOBAL_BIND_CB(www, www_interface)
-#define GLOBAL_CREATE_OR_RETURN(NAME, IFACE) \
+#define GLOBAL_CREATE_OR_RETURN(NAME, IFACE, VERSION) \
do { \
struct wl_global *global; \
\
- global = wl_global_create(e_comp_wl->wl.disp, &(IFACE), 1, \
+ global = wl_global_create(e_comp_wl->wl.disp, &(IFACE), VERSION, \
NULL, _e_comp_wl_##NAME##_cb_bind); \
if (!global) \
{ \
@@ -276,9 +276,9 @@ e_comp_wl_extensions_init(void)
e_comp_wl->extensions = E_NEW(E_Comp_Wl_Extension_Data, 1);
/* try to add session_recovery to wayland globals */
- GLOBAL_CREATE_OR_RETURN(session_recovery, zwp_e_session_recovery_interface);
- GLOBAL_CREATE_OR_RETURN(screenshooter, screenshooter_interface);
- GLOBAL_CREATE_OR_RETURN(www, www_interface);
+ GLOBAL_CREATE_OR_RETURN(session_recovery, zwp_e_session_recovery_interface, 1);
+ GLOBAL_CREATE_OR_RETURN(screenshooter, screenshooter_interface, 1);
+ GLOBAL_CREATE_OR_RETURN(www, www_interface, 1);
ecore_event_handler_add(ECORE_WL2_EVENT_SYNC_DONE, _dmabuf_add, NULL);