compositor: Use stdint for specifing integer storage
[src/agl-compositor.git] / src / ivi-compositor.h
index 62e70e1..695cf95 100644 (file)
 #include <stdbool.h>
 #include "config.h"
 
+#include <weston.h>
 #include <libweston/backend-drm.h>
 #include <libweston/libweston.h>
 #include <libweston/windowed-output-api.h>
-#include <libweston-desktop/libweston-desktop.h>
+#include <libweston/desktop.h>
 
 #include "remote.h"
 
@@ -60,6 +61,7 @@ struct ivi_output_config {
 
 struct ivi_compositor {
        struct weston_compositor *compositor;
+       struct weston_backend *backend;
        struct weston_config *config;
        struct ivi_output_config *parsed_options;
 
@@ -71,6 +73,8 @@ struct ivi_compositor {
        bool activate_by_default;
        bool keep_pending_surfaces;
 
+       struct wl_listener screenshot_auth;
+
        /*
         * Options parsed from command line arugments.
         * Overrides what is found in the config file.
@@ -169,6 +173,7 @@ struct ivi_output {
        struct fullscreen_view {
                struct ivi_surface *fs;
                struct wl_listener fs_destroy;
+               struct weston_buffer_reference *buffer_ref;
        } fullscreen_view;
 
        struct wl_listener output_destroy;
@@ -530,7 +535,10 @@ void
 shell_send_app_state(struct ivi_compositor *ivi, const char *app_id,
                     enum agl_shell_app_state state);
 void
-ivi_layout_destroy_saved_outputs(struct ivi_compositor *ivi);
+ivi_layout_restore(struct ivi_compositor *ivi, struct ivi_output *n_output);
+
+void
+ivi_layout_save(struct ivi_compositor *ivi, struct ivi_output *output);
 
 struct weston_output *
 get_default_output(struct weston_compositor *compositor);
@@ -561,4 +569,7 @@ _ivi_set_shell_surface_split(struct ivi_surface *surface, struct ivi_output *out
 struct ivi_output_config *
 ivi_init_parsed_options(struct weston_compositor *compositor);
 
+void
+ivi_process_destroy(struct wet_process *process, int status, bool call_cleanup);
+
 #endif