add tizen_dpms interface 41/204541/3
authorJunkyeong Kim <jk0430.kim@samsung.com>
Wed, 24 Apr 2019 07:59:29 +0000 (16:59 +0900)
committerJunkyeong Kim <jk0430.kim@samsung.com>
Fri, 26 Apr 2019 07:22:20 +0000 (16:22 +0900)
Change-Id: I95353bf8425e557827829d1d036245b82dfc4d89
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
Makefile.am
protocol/tizen/tizen-dpms.xml [new file with mode: 0644]

index d3be6eb..be13037 100644 (file)
@@ -281,6 +281,23 @@ libtizen_surface_client_la_SOURCES = protocol/tizen/tizen-surface-protocol.c
 libtizen_surface_client_la_CFLAGS  = @WAYLAND_CLIENT_CFLAGS@
 libtizen_surface_client_la_LIBADD  = @WAYLAND_CLIENT_LIBS@
 
+### tizen-dpms
+protocol_LTLIBRARIES += \
+        libtizen-dpms-server.la \
+        libtizen-dpms-client.la
+pkgconfig_DATA += \
+        src/tizen-dpms-server.pc \
+        src/tizen-dpms-client.pc
+protocolinclude_HEADERS += \
+        protocol/tizen/tizen-dpms-server-protocol.h \
+        protocol/tizen/tizen-dpms-client-protocol.h
+libtizen_dpms_server_la_SOURCES = protocol/tizen/tizen-dpms-protocol.c
+libtizen_dpms_server_la_CFLAGS  = @WAYLAND_SERVER_CFLAGS@
+libtizen_dpms_server_la_LIBADD  = @WAYLAND_SERVER_LIBS@
+libtizen_dpms_client_la_SOURCES = protocol/tizen/tizen-dpms-protocol.c
+libtizen_dpms_client_la_CFLAGS  = @WAYLAND_CLIENT_CFLAGS@
+libtizen_dpms_client_la_LIBADD  = @WAYLAND_CLIENT_LIBS@
+
 ### wayland-protocols
 unstable_protocols = \
        protocol/unstable/pointer-gestures/pointer-gestures-unstable-v1.xml \
diff --git a/protocol/tizen/tizen-dpms.xml b/protocol/tizen/tizen-dpms.xml
new file mode 100644 (file)
index 0000000..6de70f2
--- /dev/null
@@ -0,0 +1,43 @@
+<protocol name="tizen_dpms">
+  <interface name="tizen_dpms_manager" version="1">
+    <description summary="manager of tizen_dpms">
+      A manager of tizen_dpms. This object provides interface to setting and
+      getting dpms.
+    </description>
+
+    <enum name="error">
+      <entry name="none" value="0" summary="no error"/>
+      <entry name="invalid_permission" value="1" summary="Permission deny"/>
+      <entry name="invalid_parameter" value="2" summary="Given parameter is invalid"/>
+      <entry name="not_supported" value="3" summary="Given service is not supported."/>
+      <entry name="already_done" value="4" summary="Given request is already done."/>
+    </enum>
+
+    <enum name="mode" summary="available dpms modes">
+      <entry name="on" value="0" summary="DPMS ON"/>
+      <entry name="standby" value="1" summary="DPMS STANDBY"/>
+      <entry name="suspend" value="2" summary="DPMS SUSPEND"/>
+      <entry name="off" value="3" summary="DPMS OFF"/>
+    </enum>
+
+    <request name="destroy" type="destructor">
+      <description summary="destroy the tizen_dpms_manager">
+        Destroy the tizen_dpms_manager.
+      </description>
+    </request>
+
+    <request name="set_dpms">
+      <arg name="output" type="object" interface="wl_output" summary="output object for dpms"/>
+      <arg name="mode" type="uint" summary="dpms mode"/>
+    </request>
+
+    <request name="get_dpms">
+      <arg name="output" type="object" interface="wl_output" summary="output object for dpms"/>
+    </request>
+
+    <event name="state">
+      <arg name="mode" type="uint"/>
+      <arg name="error" type="uint"/>
+    </event>
+  </interface>
+</protocol>