Merge "[SDL_Tizen] Fix rotation issue" into tizen
[platform/upstream/SDL.git] / src / video / tizen / SDL_tizenwindow.h
index 844bccc..cb0da77 100755 (executable)
 #include <Ecore_Input.h>
 #include <wayland-egl.h>
 
-typedef struct Tizen_PreRotation_Data{
-    void *prerotation_dll_handle;
-    int (*wl_egl_window_get_capabilities) (struct wl_egl_window *egl_window);
-    void (*wl_egl_window_set_rotation) (struct wl_egl_window *egl_window, int rotation);
-} Tizen_Prerotation_Data;
-
 typedef struct {
-    uint32_t id;
+    uint32_t id;               /* Ecore wayland window id */
+
     Ecore_Wl_Window *window;
     struct wl_surface *surface;
     struct wl_egl_window *egl_window;
-
     EGLSurface egl_surface;
+
     int rotation;
+    int output_rotation;
     int rotation_supported;
     int received_rotation;
-    int output_rotation;
-    SDL_bool indicator;
 
-    int support_pre_rotation;
-    SDL_bool isLoaded_pre_rotation;
-    Tizen_Prerotation_Data * tizen_pre_rotation_data;
+    SDL_bool support_pre_rotation;
 
 } SDL_WindowData;
 
@@ -102,13 +94,14 @@ extern void _tizen_ecore_ipc_client_send(int major, int minor, int ref, int ref_
 
 enum
 {
-    OP_RESIZE=1,
+    OP_INDICATOR_SHOW=1,
+    OP_INDICATOR_HIDE,
     OP_RESUME,
     OP_PAUSE,
     OP_TERMINATE
 };
 
-extern void SDL_ExecuteIndicatorProcess();
+extern void Tizen_ExecuteIndicatorProcess();
 
 #endif /* _SDL_tizenwindow_h */