libds-tizen needs ds_region_from_resource api for using
wl_region in extension protocol
Change-Id: I6e1f3f27de99b5b0c4398dc5471e062465d7697d
--- /dev/null
+#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
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,
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);