tizen_hwc: add tizen_hwc protocol 12/228712/6
authorSooChan Lim <sc1.lim@samsung.com>
Wed, 25 Mar 2020 04:51:06 +0000 (13:51 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 27 Apr 2020 08:53:03 +0000 (17:53 +0900)
add the tizen_hwc_commit request.
The display server has to wl_callback done event after
it excute the hwc_commit request.

Change-Id: I936b8ee022d1fb1d031b27205c10c387769360b3

Makefile.am
protocol/tizen/tizen-hwc.xml [new file with mode: 0644]

index 2d6fc9c..a4c104f 100644 (file)
@@ -298,6 +298,23 @@ 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@
 
+### tizen-hwc
+protocol_LTLIBRARIES += \
+        libtizen-hwc-server.la \
+        libtizen-hwc-client.la
+pkgconfig_DATA += \
+        src/tizen-hwc-server.pc \
+        src/tizen-hwc-client.pc
+protocolinclude_HEADERS += \
+        protocol/tizen/tizen-hwc-server-protocol.h \
+        protocol/tizen/tizen-hwc-client-protocol.h
+libtizen_hwc_server_la_SOURCES = protocol/tizen/tizen-hwc-protocol.c
+libtizen_hwc_server_la_CFLAGS  = @WAYLAND_SERVER_CFLAGS@
+libtizen_hwc_server_la_LIBADD  = @WAYLAND_SERVER_LIBS@
+libtizen_hwc_client_la_SOURCES = protocol/tizen/tizen-hwc-protocol.c
+libtizen_hwc_client_la_CFLAGS  = @WAYLAND_CLIENT_CFLAGS@
+libtizen_hwc_client_la_LIBADD  = @WAYLAND_CLIENT_LIBS@
+
 ### presentation_time
 protocol_LTLIBRARIES += \
         libpresentation-time-server.la \
diff --git a/protocol/tizen/tizen-hwc.xml b/protocol/tizen/tizen-hwc.xml
new file mode 100644 (file)
index 0000000..b8faf43
--- /dev/null
@@ -0,0 +1,20 @@
+<protocol name="tizen_hwc">
+  <interface name="tizen_hwc" version="1">
+    <request name="commit">
+      <description summary="">
+        Request a notification when a display server requests a hwc_commit to the device.
+        This request is a tizen-specific one. The client wants to know about when a
+        display server requests all displaying requests to the Hardware. In this case,
+        the display server has to send wl_callback done event to the client after a hwc_commit
+        is excuted when it gets the commit request from the client.
+      </description>
+      <arg name="callback" type="new_id" interface="wl_callback" summary="callback object for the commit request"/>
+    </request>
+
+    <request name="destroy" type="destructor">
+      <description summary="destroy tizen_hwc">
+        Destroy tizen_hwc.
+      </description>
+    </request>
+  </interface>
+</protocol>