X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fivi-compositor.h;h=446390dad368cbee3df2549630b3e7dbf4a7cd2c;hb=3b38187d416182306e0533f17a6129a45a168f14;hp=a01c617c177d68c841e839a2ab5a7e8205410f3d;hpb=1dc043f95e9e1d3c83901fdc93186b7327e86e89;p=src%2Fagl-compositor.git diff --git a/src/ivi-compositor.h b/src/ivi-compositor.h index a01c617..446390d 100644 --- a/src/ivi-compositor.h +++ b/src/ivi-compositor.h @@ -36,7 +36,10 @@ #include "agl-shell-server-protocol.h" -#define ARRAY_LENGTH(x) (sizeof(x) / sizeof((x)[0])) +struct desktop_client { + struct wl_resource *resource; + struct wl_list link; /* ivi_compositor::desktop_clients */ +}; struct ivi_compositor { struct weston_compositor *compositor; @@ -62,6 +65,7 @@ struct ivi_compositor { const struct weston_drm_output_api *drm_api; struct wl_global *agl_shell; + struct wl_global *agl_shell_desktop; struct { int activate_apps_by_default; /* switches once xdg top level has been 'created' */ } quirks; @@ -72,6 +76,8 @@ struct ivi_compositor { bool ready; } shell_client; + struct wl_list desktop_clients; /* desktop_client::link */ + struct wl_list outputs; /* ivi_output.link */ struct wl_list surfaces; /* ivi_surface.link */