Change-Id: I742eb7cffb5f0933cee3f1096866693271ebe3b5
return _e_surface_from_ds_surface(ds_surface_from_resource(surface_resource));
}
+EINTERN E_Surface *
+e_surface_from_ec(E_Client *ec)
+{
+ E_Surface *surface;
+
+ assert(ec->comp_data);
+
+ return wl_container_of(ec->comp_data, surface, base);
+}
+
+EINTERN E_Surface *
+e_surface_try_from_ec(E_Client *ec)
+{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(ec->comp_data, NULL);
+
+ return e_surface_from_ec(ec);
+}
+
EINTERN void
e_surface_destroy_listener_add(E_Surface *surface, struct wl_listener *listener)
{
EINTERN Eina_Bool e_compositor_init(struct wl_display *display);
EINTERN E_Surface *e_surface_from_resource(struct wl_resource *surface_resource);
+EINTERN E_Surface *e_surface_from_ec(E_Client *ec);
+EINTERN E_Surface *e_surface_try_from_ec(E_Client *ec);
EINTERN void e_surface_destroy_listener_add(E_Surface *surface, struct wl_listener *listener);
EINTERN void e_surface_parent_destroy_listener_add(E_Surface *surface, struct wl_listener *listener);
EINTERN void e_surface_precommit_to_cache_listener_add(E_Surface *surface, struct wl_listener *listener);