/* Generated by wayland-scanner 1.23.0 */ #ifndef AURA_OUTPUT_MANAGEMENT_SERVER_PROTOCOL_H #define AURA_OUTPUT_MANAGEMENT_SERVER_PROTOCOL_H #include <stdint.h> #include <stddef.h> #include "wayland-server.h" #ifdef __cplusplus extern "C" { #endif struct wl_client; struct wl_resource; /** * @page page_aura_output_management The aura_output_management protocol * @section page_ifaces_aura_output_management Interfaces * - @subpage page_iface_zaura_output_manager_v2 - aura output manager singleton * @section page_copyright_aura_output_management Copyright * <pre> * * Copyright 2024 The Chromium Authors * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice (including the next * paragraph) shall be included in all copies or substantial portions of the * Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. * </pre> */ struct zaura_output_manager_v2; #ifndef ZAURA_OUTPUT_MANAGER_V2_INTERFACE #define ZAURA_OUTPUT_MANAGER_V2_INTERFACE /** * @page page_iface_zaura_output_manager_v2 zaura_output_manager_v2 * @section page_iface_zaura_output_manager_v2_desc Description * * A global responsible for propagating atomic output configuration changes * to clients. An output configuration is a union of added / removed outputs * and updated output metrics. * * Added outputs arrive at the client as wl_registry.global events, removed * outputs as wl_registry.global_remove events and updated output metrics as * a sequence of events defined on the zaura_output_manager_v2 interface. * This is followed by the manager's done event which signals the end of the * transaction. * * The change should be processed by clients in a way that transitions from * one output configuration state to another without exposing the * intermediate output state to the rest of the application. * * Participating servers should emit the zaura_output_manager_v2 global * before any wl_output globals in the sequence of wl_registry.global events. * * Participating clients should bind the zaura_output_manager_v2 before any * wl_output globals. This ordering is required to ensure clients receive all * necessary output configuration information before receiving any further * server events that may reference bound wl_outputs. * * Clients can expect that all events comprising a configuration change are * sent synchronously, one after the other, before any other server events * that leverage the output as an event param. * @section page_iface_zaura_output_manager_v2_api API * See @ref iface_zaura_output_manager_v2. */ /** * @defgroup iface_zaura_output_manager_v2 The zaura_output_manager_v2 interface * * A global responsible for propagating atomic output configuration changes * to clients. An output configuration is a union of added / removed outputs * and updated output metrics. * * Added outputs arrive at the client as wl_registry.global events, removed * outputs as wl_registry.global_remove events and updated output metrics as * a sequence of events defined on the zaura_output_manager_v2 interface. * This is followed by the manager's done event which signals the end of the * transaction. * * The change should be processed by clients in a way that transitions from * one output configuration state to another without exposing the * intermediate output state to the rest of the application. * * Participating servers should emit the zaura_output_manager_v2 global * before any wl_output globals in the sequence of wl_registry.global events. * * Participating clients should bind the zaura_output_manager_v2 before any * wl_output globals. This ordering is required to ensure clients receive all * necessary output configuration information before receiving any further * server events that may reference bound wl_outputs. * * Clients can expect that all events comprising a configuration change are * sent synchronously, one after the other, before any other server events * that leverage the output as an event param. */ extern const struct wl_interface zaura_output_manager_v2_interface; #endif #define ZAURA_OUTPUT_MANAGER_V2_DONE … #define ZAURA_OUTPUT_MANAGER_V2_DISPLAY_ID … #define ZAURA_OUTPUT_MANAGER_V2_LOGICAL_POSITION … #define ZAURA_OUTPUT_MANAGER_V2_LOGICAL_SIZE … #define ZAURA_OUTPUT_MANAGER_V2_PHYSICAL_SIZE … #define ZAURA_OUTPUT_MANAGER_V2_WORK_AREA_INSETS … #define ZAURA_OUTPUT_MANAGER_V2_DEVICE_SCALE_FACTOR … #define ZAURA_OUTPUT_MANAGER_V2_LOGICAL_TRANSFORM … #define ZAURA_OUTPUT_MANAGER_V2_PANEL_TRANSFORM … #define ZAURA_OUTPUT_MANAGER_V2_NAME … #define ZAURA_OUTPUT_MANAGER_V2_DESCRIPTION … #define ZAURA_OUTPUT_MANAGER_V2_OVERSCAN_INSETS … #define ZAURA_OUTPUT_MANAGER_V2_ACTIVATED … /** * @ingroup iface_zaura_output_manager_v2 */ #define ZAURA_OUTPUT_MANAGER_V2_DONE_SINCE_VERSION … /** * @ingroup iface_zaura_output_manager_v2 */ #define ZAURA_OUTPUT_MANAGER_V2_DISPLAY_ID_SINCE_VERSION … /** * @ingroup iface_zaura_output_manager_v2 */ #define ZAURA_OUTPUT_MANAGER_V2_LOGICAL_POSITION_SINCE_VERSION … /** * @ingroup iface_zaura_output_manager_v2 */ #define ZAURA_OUTPUT_MANAGER_V2_LOGICAL_SIZE_SINCE_VERSION … /** * @ingroup iface_zaura_output_manager_v2 */ #define ZAURA_OUTPUT_MANAGER_V2_PHYSICAL_SIZE_SINCE_VERSION … /** * @ingroup iface_zaura_output_manager_v2 */ #define ZAURA_OUTPUT_MANAGER_V2_WORK_AREA_INSETS_SINCE_VERSION … /** * @ingroup iface_zaura_output_manager_v2 */ #define ZAURA_OUTPUT_MANAGER_V2_DEVICE_SCALE_FACTOR_SINCE_VERSION … /** * @ingroup iface_zaura_output_manager_v2 */ #define ZAURA_OUTPUT_MANAGER_V2_LOGICAL_TRANSFORM_SINCE_VERSION … /** * @ingroup iface_zaura_output_manager_v2 */ #define ZAURA_OUTPUT_MANAGER_V2_PANEL_TRANSFORM_SINCE_VERSION … /** * @ingroup iface_zaura_output_manager_v2 */ #define ZAURA_OUTPUT_MANAGER_V2_NAME_SINCE_VERSION … /** * @ingroup iface_zaura_output_manager_v2 */ #define ZAURA_OUTPUT_MANAGER_V2_DESCRIPTION_SINCE_VERSION … /** * @ingroup iface_zaura_output_manager_v2 */ #define ZAURA_OUTPUT_MANAGER_V2_OVERSCAN_INSETS_SINCE_VERSION … /** * @ingroup iface_zaura_output_manager_v2 */ #define ZAURA_OUTPUT_MANAGER_V2_ACTIVATED_SINCE_VERSION … /** * @ingroup iface_zaura_output_manager_v2 * Sends an done event to the client owning the resource. * @param resource_ The client's resource */ static inline void zaura_output_manager_v2_send_done(struct wl_resource *resource_) { … } /** * @ingroup iface_zaura_output_manager_v2 * Sends an display_id event to the client owning the resource. * @param resource_ The client's resource */ static inline void zaura_output_manager_v2_send_display_id(struct wl_resource *resource_, uint32_t output_name, uint32_t display_id_hi, uint32_t display_id_lo) { … } /** * @ingroup iface_zaura_output_manager_v2 * Sends an logical_position event to the client owning the resource. * @param resource_ The client's resource * @param x x position within the global compositor space * @param y y position within the global compositor space */ static inline void zaura_output_manager_v2_send_logical_position(struct wl_resource *resource_, uint32_t output_name, int32_t x, int32_t y) { … } /** * @ingroup iface_zaura_output_manager_v2 * Sends an logical_size event to the client owning the resource. * @param resource_ The client's resource * @param width width in global compositor space * @param height height in global compositor space */ static inline void zaura_output_manager_v2_send_logical_size(struct wl_resource *resource_, uint32_t output_name, int32_t width, int32_t height) { … } /** * @ingroup iface_zaura_output_manager_v2 * Sends an physical_size event to the client owning the resource. * @param resource_ The client's resource * @param width width in global compositor space * @param height height in global compositor space */ static inline void zaura_output_manager_v2_send_physical_size(struct wl_resource *resource_, uint32_t output_name, int32_t width, int32_t height) { … } /** * @ingroup iface_zaura_output_manager_v2 * Sends an work_area_insets event to the client owning the resource. * @param resource_ The client's resource */ static inline void zaura_output_manager_v2_send_work_area_insets(struct wl_resource *resource_, uint32_t output_name, int32_t top, int32_t left, int32_t bottom, int32_t right) { … } /** * @ingroup iface_zaura_output_manager_v2 * Sends an device_scale_factor event to the client owning the resource. * @param resource_ The client's resource * @param device_scale_factor display scale factor, in float format */ static inline void zaura_output_manager_v2_send_device_scale_factor(struct wl_resource *resource_, uint32_t output_name, uint32_t device_scale_factor) { … } /** * @ingroup iface_zaura_output_manager_v2 * Sends an logical_transform event to the client owning the resource. * @param resource_ The client's resource * @param transform transform that maps framebuffer to output */ static inline void zaura_output_manager_v2_send_logical_transform(struct wl_resource *resource_, uint32_t output_name, int32_t transform) { … } /** * @ingroup iface_zaura_output_manager_v2 * Sends an panel_transform event to the client owning the resource. * @param resource_ The client's resource * @param transform transform that maps framebuffer to output */ static inline void zaura_output_manager_v2_send_panel_transform(struct wl_resource *resource_, uint32_t output_name, int32_t transform) { … } /** * @ingroup iface_zaura_output_manager_v2 * Sends an name event to the client owning the resource. * @param resource_ The client's resource * @param name output name */ static inline void zaura_output_manager_v2_send_name(struct wl_resource *resource_, uint32_t output_name, const char *name) { … } /** * @ingroup iface_zaura_output_manager_v2 * Sends an description event to the client owning the resource. * @param resource_ The client's resource * @param description output description */ static inline void zaura_output_manager_v2_send_description(struct wl_resource *resource_, uint32_t output_name, const char *description) { … } /** * @ingroup iface_zaura_output_manager_v2 * Sends an overscan_insets event to the client owning the resource. * @param resource_ The client's resource */ static inline void zaura_output_manager_v2_send_overscan_insets(struct wl_resource *resource_, uint32_t output_name, int32_t top, int32_t left, int32_t bottom, int32_t right) { … } /** * @ingroup iface_zaura_output_manager_v2 * Sends an activated event to the client owning the resource. * @param resource_ The client's resource */ static inline void zaura_output_manager_v2_send_activated(struct wl_resource *resource_, uint32_t output_name) { … } #ifdef __cplusplus } #endif #endif