agl-shell: Add split functionality into agl-shell protocol
[src/agl-compositor.git] / src / ivi-compositor.h
index dff11b9..11e7290 100644 (file)
@@ -104,6 +104,8 @@ struct ivi_compositor {
        struct wl_list split_pending_apps;
        struct wl_list remote_pending_apps;
 
+       struct wl_list pending_apps;    /** pending_app::link */
+
        struct wl_listener destroy_listener;
 
        struct weston_layer hidden;
@@ -175,6 +177,7 @@ enum ivi_surface_role {
        IVI_SURFACE_ROLE_SPLIT_V,
        IVI_SURFACE_ROLE_SPLIT_H,
        IVI_SURFACE_ROLE_REMOTE,
+       IVI_SURFACE_ROLE_TILE,
 };
 
 struct ivi_bounding_box {
@@ -182,6 +185,18 @@ struct ivi_bounding_box {
        int width; int height;
 };
 
+struct pending_app {
+       struct ivi_output *ioutput;
+       enum ivi_surface_role role;
+       char *app_id;
+       struct wl_list link;    /** ivi_compositor::pending_apps */
+};
+
+struct pending_app_tile {
+       struct pending_app base;
+       uint32_t orientation;
+};
+
 struct pending_popup {
        struct ivi_output *ioutput;
        char *app_id;
@@ -280,6 +295,8 @@ struct ivi_surface {
                HIDDEN,
        } state;
 
+       uint32_t orientation;
+
        enum ivi_surface_role role;
        union {
                struct ivi_desktop_surface desktop;