[2/4]wayland-egl-tizen-priv: Added new header to support tizen specific feature. 17/208917/3
authorJoonbum Ko <joonbum.ko@samsung.com>
Mon, 1 Jul 2019 04:32:03 +0000 (13:32 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Tue, 16 Jul 2019 09:33:24 +0000 (18:33 +0900)
Change-Id: Icb1e4afa47597cb2bc7c6e9467e5a6ec0e547dfb
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/wayland-egl/wayland-egl-tizen-priv.h [new file with mode: 0644]

diff --git a/src/wayland-egl/wayland-egl-tizen-priv.h b/src/wayland-egl/wayland-egl-tizen-priv.h
new file mode 100644 (file)
index 0000000..5b65a70
--- /dev/null
@@ -0,0 +1,52 @@
+#ifndef _WAYLAND_EGL_TIZEN_PRIV_H
+#define _WAYLAND_EGL_TIZEN_PRIV_H
+
+#ifdef  __cplusplus
+extern "C" {
+#endif
+
+#include <stdlib.h>
+#include <wayland-client.h>
+#include <wayland-egl.h>
+
+struct tizen_private {
+       int rotation;
+       int frontbuffer_mode;
+       int transform;
+       int window_transform;
+       unsigned int serial;
+
+       void *data;
+
+    void (*rotate_callback)(struct wl_egl_window *, void *);
+       int (*get_rotation_capability)(struct wl_egl_window *, void *);
+       void (*set_frontbuffer_callback)(struct wl_egl_window *, void *, int);
+       void (*set_window_serial_callback)(struct wl_egl_window *, void *, unsigned int);
+};
+
+static struct tizen_private* tizen_private_create()
+{
+       struct tizen_private *private = NULL;
+       private = (struct tizen_private *)calloc(1, sizeof(struct tizen_private));
+       if (private) {
+               private->rotation = 0;
+               private->frontbuffer_mode = 0;
+               private->transform = 0;
+               private->window_transform = 0;
+               private->serial = 0;
+
+               private->data = NULL;
+               private->rotate_callback = NULL;
+               private->get_rotation_capability = NULL;
+               private->set_window_serial_callback = NULL;
+               private->set_frontbuffer_callback = NULL;
+       }
+
+       return private;
+}
+
+#ifdef  __cplusplus
+}
+#endif
+
+#endif