wtz-video-shell: Add protocol errors 56/315856/1
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 8 Aug 2024 07:27:34 +0000 (16:27 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Thu, 8 Aug 2024 07:29:39 +0000 (16:29 +0900)
The subsurface to export as video viewport cannot have a child
subsurface. This patch adds protocol errors to prevent video viewport
subsurface from having a child subsurface.

Change-Id: I6086558827fc866b73378e6e267671c29b8dc0e5

protocol/tizen/wtz-video-shell.xml

index 65e4e61..07ba872 100644 (file)
@@ -32,6 +32,7 @@
   <interface name="wtz_video_shell" version="1">
     <enum name="error">
       <entry name="role" value="0" summary="given surface has another role"/>
+      <entry name="child_exists" value="1" summary="the subsurface to export as video viewport cannot have a child subsurface"/>
     </enum>
 
     <request name="export_viewport">
@@ -58,6 +59,7 @@
       <entry name="bad_value" value="0" summary="negative or zero values in width or height"/>
       <entry name="invalid_transform" value="1" summary="transform value is invalid"/>
       <entry name="no_subsurface" value="2" summary="the wl_subsurface was destroyed"/>
+      <entry name="child_added" value="3" summary="the video viewport subsurface cannot have a child subsurface"/>
     </enum>
 
     <enum name="transform">