From 177a73f0b8389ad0db2c3ffa6b0992eb62fd1476 Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Mon, 30 Dec 2024 11:20:09 +0900 Subject: [PATCH] add wtz-output protocol wtz-output protocol provide the interface which support tizen-specific information and rquests accoding the display output. Change-Id: I48bb5dcf817c7cf6fa50b8dc75cd893ff6c125d5 --- Makefile.am | 17 +++++++ protocol/tizen/wtz-output.xml | 83 +++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 protocol/tizen/wtz-output.xml diff --git a/Makefile.am b/Makefile.am index c7b0db4..b5c2dc3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -544,6 +544,22 @@ libwtz_video_shell_client_la_SOURCES = protocol/tizen/wtz-video-shell-protocol.c libwtz_video_shell_client_la_CFLAGS = @WAYLAND_CLIENT_CFLAGS@ libwtz_video_shell_client_la_LIBADD = @WAYLAND_CLIENT_LIBS@ +### wtz_output +protocol_LTLIBRARIES += \ + libwtz-output-server.la \ + libwtz-output-client.la +pkgconfig_DATA += \ + src/wtz-output-server.pc \ + src/wtz-output-client.pc +protocolinclude_HEADERS += \ + protocol/tizen/wtz-output-server-protocol.h \ + protocol/tizen/wtz-output-client-protocol.h +libwtz_output_server_la_SOURCES = protocol/tizen/wtz-output-protocol.c +libwtz_output_server_la_CFLAGS = @WAYLAND_SERVER_CFLAGS@ +libwtz_output_server_la_LIBADD = @WAYLAND_SERVER_LIBS@ +libwtz_output_client_la_SOURCES = protocol/tizen/wtz-output-protocol.c +libwtz_output_client_la_CFLAGS = @WAYLAND_CLIENT_CFLAGS@ +libwtz_output_client_la_LIBADD = @WAYLAND_CLIENT_LIBS@ ### wayland-protocols unstable_protocols = \ @@ -602,6 +618,7 @@ tizen_protocols = \ protocol/tizen/wtz-blender.xml \ protocol/tizen/wtz-blur.xml \ protocol/tizen/wtz-video-shell.xml \ + protocol/tizen/wtz-output.xml \ $(NULL) nobase_dist_pkgdata_DATA = \ diff --git a/protocol/tizen/wtz-output.xml b/protocol/tizen/wtz-output.xml new file mode 100644 index 0000000..8d7d784 --- /dev/null +++ b/protocol/tizen/wtz-output.xml @@ -0,0 +1,83 @@ + + + + Copyright © 2025 Samsung Electronics Co., Ltd. + + 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. + + + + This is the waylanad protocol for supporting tizen outputs. + + + + + wtz_output_manager is a global factory interface for wtz_output objects. + + + + + Destroy this wtz_output_manager object. + Notify when it is not going to use the wtz_output_manager + object anymore. + + + + + + This creates a wtz_output for the given output. + + + + + + + + + An interface that may be implemented by a wl_output, for + implementations that provide a tizen-specific user interface. + + + + + Destroy the wtz_output object. + + + + + + Set the primary output. + + + + + + This sets the mode of the output with the given information. The flags + describe properties of an output mode. They are defined in wl_output interface. + + + + + + + + + + -- 2.34.1