diff options
author | Chris Michael <cp.michael@samsung.com> | 2014-10-14 15:17:56 -0400 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2014-10-14 15:17:56 -0400 |
commit | 8987766a87f9d3a010899682c1cdfc6000558398 (patch) | |
tree | c7415bd5eb573baad548b06e1711b294ea835cfd | |
parent | 4cdac5d4ef2f3da4136ffa0ae43f337c0a5a2ffa (diff) | |
download | enlightenment-8987766a87f9d3a010899682c1cdfc6000558398.tar.gz |
start on actual compositor interface code
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r-- | src/bin/e_comp_wl.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 1c9f69456f..d1bc6f3776 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -65,6 +65,28 @@ _e_comp_wl_cb_module_idle(void *data) } static void +_e_comp_wl_compositor_cb_surface_create(struct wl_client *client, struct wl_resource *resource, uint32_t id) +{ + E_Comp *comp; + + if (!(comp = wl_resource_get_user_data(resource))) return; +} + +static void +_e_comp_wl_compositor_cb_region_create(struct wl_client *client, struct wl_resource *resource, uint32_t id) +{ + E_Comp *comp; + + if (!(comp = wl_resource_get_user_data(resource))) return; +} + +static const struct wl_compositor_interface _e_comp_interface = +{ + _e_comp_wl_compositor_cb_surface_create, + _e_comp_wl_compositor_cb_region_create +}; + +static void _e_comp_wl_compositor_cb_bind(struct wl_client *client, void *data, uint32_t version, uint32_t id) { E_Comp *comp; @@ -80,6 +102,8 @@ _e_comp_wl_compositor_cb_bind(struct wl_client *client, void *data, uint32_t ver wl_client_post_no_memory(client); return; } + + wl_resource_set_implementation(res, &_e_comp_interface, comp, NULL); } static void |