screenshooter: Add agl-screenshooter protocol
[src/agl-compositor.git] / src / ivi-compositor.h
index d6b6c80..4506a5a 100644 (file)
@@ -34,6 +34,8 @@
 #include <libweston/windowed-output-api.h>
 #include <libweston-desktop/libweston-desktop.h>
 
+#include "remote.h"
+
 #include "agl-shell-server-protocol.h"
 
 struct ivi_compositor;
@@ -66,6 +68,7 @@ struct ivi_compositor {
        } cmdline;
        const struct weston_windowed_output_api *window_api;
        const struct weston_drm_output_api *drm_api;
+       const struct weston_remoting_api *remoting_api;
 
        struct wl_global *agl_shell;
        struct wl_global *agl_shell_desktop;
@@ -152,10 +155,16 @@ enum ivi_surface_role {
        IVI_SURFACE_ROLE_REMOTE,
 };
 
+struct ivi_bounding_box {
+       int x; int y;
+       int width; int height;
+};
+
 struct pending_popup {
        struct ivi_output *ioutput;
        char *app_id;
        int x; int y;
+       struct ivi_bounding_box bb;
 
        struct wl_list link;    /** ivi_compositor::popup_pending_surfaces */
 };
@@ -190,8 +199,8 @@ struct ivi_background_surface {
 
 struct ivi_popup_surface {
        struct ivi_output *output;
-       int x;
-       int y;
+       int x; int y; /* initial position */
+       struct ivi_bounding_box bb;     /* bounding box */
 };
 
 struct ivi_fullscreen_surface {
@@ -324,6 +333,9 @@ ivi_layout_init(struct ivi_compositor *ivi, struct ivi_output *output);
 void
 ivi_layout_activate(struct ivi_output *output, const char *app_id);
 
+void
+ivi_layout_activate_by_surf(struct ivi_output *output, struct ivi_surface *surf);
+
 void
 ivi_layout_desktop_committed(struct ivi_surface *surf);
 
@@ -355,4 +367,17 @@ remove_black_surface(struct ivi_output *output);
 const char *
 ivi_layout_get_surface_role_name(struct ivi_surface *surf);
 
+void
+ivi_set_pending_desktop_surface_remote(struct ivi_output *ioutput,
+               const char *app_id);
+
+struct ivi_output *
+ivi_layout_find_with_app_id(const char *app_id, struct ivi_compositor *ivi);
+
+void
+shell_advertise_app_state(struct ivi_compositor *ivi, const char *app_id,
+                         const char *data, uint32_t app_state);
+void
+ivi_screenshooter_create(struct ivi_compositor *ivi);
+
 #endif