region: Export ds_region_from_resource api 10/301510/2
authorChangyeon Lee <cyeon.lee@samsung.com>
Thu, 9 Nov 2023 09:12:12 +0000 (18:12 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 17 Nov 2023 05:56:06 +0000 (05:56 +0000)
libds-tizen needs ds_region_from_resource api for using
wl_region in extension protocol

Change-Id: I6e1f3f27de99b5b0c4398dc5471e062465d7697d

include/libds/region.h [new file with mode: 0644]
src/region.c
src/region.h

diff --git a/include/libds/region.h b/include/libds/region.h
new file mode 100644 (file)
index 0000000..712f68a
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef LIBDS_REGION_H
+#define LIBDS_REGION_H
+
+#include <wayland-server.h>
+#include <pixman.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+pixman_region32_t *
+ds_region_from_resource(struct wl_resource *resource);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
index 61b0117..17fb1ae 100644 (file)
@@ -36,7 +36,7 @@ ds_region_add(struct wl_client *client, uint32_t version, uint32_t id)
             region_handle_resource_destroy);
 }
 
-pixman_region32_t *
+WL_EXPORT pixman_region32_t *
 ds_region_from_resource(struct wl_resource *resource)
 {
     DS_ASSERT(wl_resource_instance_of(resource, &wl_region_interface,
index b27963c..00c5fdd 100644 (file)
@@ -7,9 +7,6 @@
 void 
 ds_region_add(struct wl_client *client, uint32_t version, uint32_t id);
 
-pixman_region32_t *
-ds_region_from_resource(struct wl_resource *resource);
-
 void
 ds_region_transform(pixman_region32_t *dst, pixman_region32_t *src,
         enum wl_output_transform transform, int width, int height);