compositor: Add e_surface_resource_get 60/319160/1
authorSeunghun Lee <shiin.lee@samsung.com>
Fri, 17 Jan 2025 01:49:33 +0000 (10:49 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Wed, 5 Feb 2025 01:00:13 +0000 (10:00 +0900)
Adds it to use in the future.

Change-Id: I4132f3e6f1f95f94ab2cbcd849c750f5d4487b3e

src/bin/server/e_compositor.c
src/bin/server/e_compositor_intern.h

index 389b4a24c93d0be04c34dd61fc29d031d024c5fc..23e346eb0296815ff39e774fed0a43f3fedb5a32 100644 (file)
@@ -676,6 +676,12 @@ e_surface_exported_id_get(E_Surface *surface)
    return ds_tizen_exported_surface_get_id(surface->exported_surface);
 }
 
+EINTERN struct wl_resource *
+e_surface_resource_get(E_Surface *surface)
+{
+   return ds_surface_get_wl_resource(surface->ds_surface);
+}
+
 EINTERN E_Subsurface *
 e_subsurface_try_from_surface(E_Surface *surface)
 {
index 04b8ab37bac0c62da91a1c446a9ce2a1914a23fc..263e4e6a1804830b8a2a3d59b77b7d5cea35005b 100644 (file)
@@ -57,6 +57,7 @@ pixman_region32_t *e_surface_surface_damage_get(E_Surface *surface);
 pixman_region32_t *e_surface_opaque_region_get(E_Surface *surface);
 pixman_region32_t *e_surface_input_region_get(E_Surface *surface);
 uint32_t e_surface_exported_id_get(E_Surface *surface);
+struct wl_resource *e_surface_resource_get(E_Surface *surface);
 
 E_Subsurface *e_subsurface_create(struct wl_resource *factory_resource, uint32_t id, E_Surface *surface, E_Surface *parent);
 E_Subsurface *e_subsurface_from_resource(struct wl_resource *resource);