protocol: split into ivi-client and ivi-controller
authorTimo Lotterbach <timo.lotterbach@bmw-carit.de>
Mon, 11 Nov 2013 09:50:53 +0000 (01:50 -0800)
committerTimo Lotterbach <timo.lotterbach@bmw-carit.de>
Mon, 11 Nov 2013 09:50:53 +0000 (01:50 -0800)
Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
protocol/ivi-client.xml [new file with mode: 0755]
protocol/ivi-controller.xml [moved from protocol/ivi-shell.xml with 91% similarity]

diff --git a/protocol/ivi-client.xml b/protocol/ivi-client.xml
new file mode 100755 (executable)
index 0000000..9ec4be1
--- /dev/null
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<protocol name="ivi_client">\r
+\r
+    <copyright>\r
+    Copyright (C) 2013 DENSO CORPORATION\r
+    Copyright (c) 2013 BMW Car IT GmbH\r
+\r
+    Permission is hereby granted, free of charge, to any person obtaining a copy\r
+    of this software and associated documentation files (the "Software"), to deal\r
+    in the Software without restriction, including without limitation the rights\r
+    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
+    copies of the Software, and to permit persons to whom the Software is\r
+    furnished to do so, subject to the following conditions:\r
+\r
+    The above copyright notice and this permission notice shall be included in\r
+    all copies or substantial portions of the Software.\r
+\r
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
+    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
+    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
+    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
+    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
+    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
+    THE SOFTWARE.\r
+    </copyright>\r
+\r
+    <interface name="ivi_surface" version="1">\r
+        <description summary="Tell property change of ivi_surface to client"/>\r
+\r
+        <request name="destroy" type="destructor">\r
+            <description summary="destroy ivi_surface"/>\r
+        </request>\r
+\r
+        <request name="set_native">\r
+            <description summary="Set the native content of an application to be used as surface content"/>\r
+            <arg name="surface" type="object" interface="wl_surface" allow-null="true"/>\r
+        </request>\r
+    </interface>\r
+\r
+    <interface name="ivi_client" version="1">\r
+        <description summary="creation of ivi_surface/ivi_layer"/>\r
+\r
+        <request name="surface_create">\r
+            <description summary="ilm_surfaceCreate"/>\r
+            <arg name="id_surface" type="uint"/>\r
+            <arg name="surface" type="object" interface="wl_surface" allow-null="true"/>\r
+            <arg name="width" type="int"/>\r
+            <arg name="height" type="int"/>\r
+            <arg name="id" type="new_id" interface="ivi_surface"/>\r
+        </request>\r
+\r
+    </interface>\r
+\r
+</protocol>
\ No newline at end of file
similarity index 91%
rename from protocol/ivi-shell.xml
rename to protocol/ivi-controller.xml
index 6092b13..ad25e90 100755 (executable)
-<?xml version="1.0" encoding="UTF-8"?>
-<protocol name="ivi">
-
-    <copyright>
-    Copyright (c) 2012 Advanced Driver Information Technology.
-    Copyright (c) 2013 BMW Car IT GmbH
-
-    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 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.
-    </copyright>
-
-    <interface name="ivi_surface" version="1">
-        <description summary="Tell property change of ivi_surface to client"/>
-
-        <event name="visibility">
-            <description summary="sent in response to set_visibility"/>
-            <arg name="visibility" type="int"/>
-        </event>
-
-        <event name="opacity">
-            <description summary="sent in response to set_opacity"/>
-            <arg name="opacity" type="fixed"/>
-        </event>
-
-        <event name="source_rectangle">
-            <description summary="sent in response to set_source_rectangle"/>
-            <arg name="x" type="int"/>
-            <arg name="y" type="int"/>
-            <arg name="width" type="int"/>
-            <arg name="height" type="int"/>
-        </event>
-
-        <event name="destination_rectangle">
-            <description summary="sent in response to set_destination_rectangle"/>
-            <arg name="x" type="int"/>
-            <arg name="y" type="int"/>
-            <arg name="width" type="int"/>
-            <arg name="height" type="int"/>
-        </event>
-
-        <event name="dimension">
-            <description summary="sent in response to set_dimension"/>
-            <arg name="width" type="int"/>
-            <arg name="height" type="int"/>
-        </event>
-
-        <event name="position">
-            <description summary="sent in response to set_position"/>
-            <arg name="x" type="int"/>
-            <arg name="y" type="int"/>
-        </event>
-
-        <enum name="orientation">
-            <description summary="orientation presets in degrees"/>
-            <entry name="0_degrees" value="0"
-             summary="not rotated"/>
-            <entry name="90_degrees" value="1"
-             summary="rotated 90 degrees clockwise"/>
-            <entry name="180_degrees" value="2"
-             summary="rotated 180 degrees clockwise"/>
-            <entry name="270_degrees" value="3"
-             summary="rotated 270 degrees clockwise"/>
-        </enum>
-
-        <event name="orientation">
-            <description summary="sent in response to set_orientation"/>
-            <arg name="orientation" type="int"/>
-        </event>
-
-        <enum name="pixelformat">
-            <description summary="pixel format values"/>
-            <entry name="r_8" value="0"
-             summary="8 bit luminance surface"/>
-            <entry name="rgb_888" value="1"
-             summary="24 bit rgb surface"/>
-            <entry name="rgba_8888" value="2"
-             summary="24 bit rgb surface with 8 bit alpha"/>
-            <entry name="rgb_565" value="3"
-             summary="16 bit rgb surface"/>
-            <entry name="rgba_5551" value="4"
-             summary="16 bit rgb surface with binary mask"/>
-            <entry name="rgba_6661" value="5"
-             summary="18 bit rgb surface with binary mask"/>
-            <entry name="rgba_4444" value="6"
-             summary="12 bit rgb surface with 4 bit alpha"/>
-            <entry name="unknown" value="7"
-             summary="unknown"/>
-        </enum>
-
-        <event name="pixelformat">
-            <description summary="pixelformat"/>
-            <arg name="pixelformat" type="int"/>
-        </event>
-
-        <request name="set_native">
-            <description summary="Set the native content of an application to be used as surface content"/>
-            <arg name="surface" type="object" interface="wl_surface" allow-null="true"/>
-        </request>
-
-        <request name="send_stats"/>
-
-        <event name="stats">
-            <description summary="sent in response to send_stats"/>
-            <arg name="redraw_count" type="uint"/>
-            <arg name="frame_count" type="uint"/>
-            <arg name="update_count" type="uint"/>
-            <arg name="pid" type="uint"/>
-        </event>
-
-    </interface>
-
-    <interface name="ivi_layer" version="1">
-        <description summary="Tell property change of ivi_layer to client"/>
-
-        <event name="visibility">
-            <description summary="sent in response to set_visibility"/>
-            <arg name="visibility" type="int"/>
-        </event>
-
-        <event name="opacity">
-            <description summary="sent in response to set_opacity"/>
-            <arg name="opacity" type="fixed"/>
-        </event>
-
-        <event name="source_rectangle">
-            <description summary="sent in response to set_source_rectangle"/>
-            <arg name="x" type="int"/>
-            <arg name="y" type="int"/>
-            <arg name="width" type="int"/>
-            <arg name="height" type="int"/>
-        </event>
-
-        <event name="destination_rectangle">
-            <description summary="sent in response to set_destination_rectangle"/>
-            <arg name="x" type="int"/>
-            <arg name="y" type="int"/>
-            <arg name="width" type="int"/>
-            <arg name="height" type="int"/>
-        </event>
-
-        <event name="dimension">
-            <description summary="sent in response to set_dimension"/>
-            <arg name="width" type="int"/>
-            <arg name="height" type="int"/>
-        </event>
-
-        <event name="position">
-            <description summary="sent in response to set_position"/>
-            <arg name="x" type="int"/>
-            <arg name="y" type="int"/>
-        </event>
-
-        <event name="orientation">
-            <description summary="sent in response to set_orientation"/>
-            <arg name="orientation" type="int"/>
-        </event>
-
-    </interface>
-
-    <interface name="ivi_controller_surface" version="1">
-        <description summary="Request property change of ivi_surface to server"/>
-
-        <request name="set_visibility">
-            <description summary="Set Visibility"/>
-            <arg name="visibility" type="uint"/>
-        </request>
-
-        <request name="set_opacity">
-            <description summary="Set Opacity"/>
-            <arg name="opacity" type="fixed"/>
-        </request>
-
-        <request name="set_source_rectangle">
-            <description summary="Set the area of wl_surface which should be used for the rendering">
-                x:      horizontal start position of the used area
-                y:      vertical start position of the used area
-                width : width of the area
-                height: height of the area
-            </description>
-            <arg name="x" type="int"/>
-            <arg name="y" type="int"/>
-            <arg name="width" type="int"/>
-            <arg name="height" type="int"/>
-        </request>
-
-        <request name="set_destination_rectangle">
-            <description summary="Set the destination area of a surface within a layer for rendering">
-                Set the destination area of a wl_surface within a layer for rendering. The surface will be scaled to this rectangle for rendering.
-                x:      horizontal start position of the used area
-                y:      vertical start position of the used area
-                width : width of the area
-                height: height of the area
-            </description>
-            <arg name="x" type="int"/>
-            <arg name="y" type="int"/>
-            <arg name="width" type="int"/>
-            <arg name="height" type="int"/>
-        </request>
-
-        <request name="set_dimension">
-            <description summary="Set Dimension"/>
-            <arg name="width" type="int"/>
-            <arg name="height" type="int"/>
-        </request>
-
-        <request name="set_position">
-            <description summary="Set Position"/>
-            <arg name="x" type="int"/>
-            <arg name="y" type="int"/>
-        </request>
-
-        <request name="set_orientation">
-            <description summary="Set Orientation"/>
-            <arg name="orientation" type="int"/>
-        </request>
-
-        <request name="screenshot">
-            <description summary="Take screenshot"/>
-            <arg name="filename" type="string"/>
-        </request>
-
-        <event name="layer">
-            <description summary="Receive a ivi_layer this ivi_surface belongs"/>
-            <arg name="layer" type="object" interface="ivi_layer" allow-null="true"/>
-        </event>
-
-    </interface>
-
-    <interface name="ivi_controller_layer" version="1">
-        <description summary="Request property change of ivi_layer and add/remove ivi_surface from ivi_layer to server"/>
-
-        <request name="set_visibility">
-            <description summary="Set Visibility"/>
-            <arg name="visibility" type="uint"/>
-        </request>
-
-        <request name="set_opacity">
-            <description summary="Set Opacity"/>
-            <arg name="opacity" type="fixed"/>
-        </request>
-
-        <request name="set_source_rectangle">
-            <description summary="Set the area of layer which should be used for the rendering">
-                x:      horizontal start position of the used area
-                y:      vertical start position of the used area
-                width : width of the area
-                height: height of the area
-            </description>
-            <arg name="x" type="int"/>
-            <arg name="y" type="int"/>
-            <arg name="width" type="int"/>
-            <arg name="height" type="int"/>
-        </request>
-
-        <request name="set_destination_rectangle">
-            <description summary="Set the destination area on the display for a layer">
-                Set the destination area on the display for a layer. The layer will be scaled and positioned to this rectangle for rendering
-                x:      horizontal start position of the used area
-                y:      vertical start position of the used area
-                width : width of the area
-                height: height of the area
-            </description>
-            <arg name="x" type="int"/>
-            <arg name="y" type="int"/>
-            <arg name="width" type="int"/>
-            <arg name="height" type="int"/>
-        </request>
-
-        <request name="set_dimension">
-            <description summary="Set Dimension"/>
-            <arg name="width" type="int"/>
-            <arg name="height" type="int"/>
-        </request>
-
-        <request name="set_position">
-            <description summary="Set Position"/>
-            <arg name="x" type="int"/>
-            <arg name="y" type="int"/>
-        </request>
-
-        <request name="set_orientation">
-            <description summary="Set Orientation"/>
-            <arg name="orientation" type="int"/>
-        </request>
-
-        <request name="screenshot">
-            <description summary="Take screenshot"/>
-            <arg name="filename" type="string"/>
-        </request>
-
-        <request name="clear_surfaces">
-            <description summary="remove all ivi_surfaces from a layer"/>
-        </request>
-
-        <request name="add_surface">
-            <description summary="add a ivi_surface to top order of a ivi_layer"/>
-            <arg name="surface" type="object" interface="ivi_surface"/>
-        </request>
-
-        <request name="remove_surface">
-            <description summary="remove a ivi_surface from a layer"/>
-            <arg name="surface" type="object" interface="ivi_surface"/>
-        </request>
-
-        <request name="set_render_order">
-            <description summary="Set Render Order"/>
-            <arg name="id_surfaces" type="array"/>
-        </request>
-
-        <event name="screen">
-            <description summary="Receive a wl_output this ivi_layer belongs"/>
-            <arg name="screen" type="object" interface="wl_output" allow-null="true"/>
-        </event>
-
-    </interface>
-
-    <interface name="ivi_controller_screen" version="1">
-        <description summary="Request add/remove layer from ivi_layer to server"/>
-
-        <request name="clear">
-            <description summary="remove all ivi_layers from wl_output"/>
-        </request>
-
-        <request name="add_layer">
-            <description summary="add a ivi_layer to top order of a wl_output"/>
-            <arg name="layer" type="object" interface="ivi_layer"/>
-        </request>
-
-        <request name="set_render_order">
-            <description summary="Set Render Order"/>
-            <arg name="id_layers" type="array"/>
-        </request>
-
-    </interface>
-
-    <interface name="ivi_controller" version="1">
-        <description summary="Interface for central controller of layers and surfaces"/>
-
-        <request name="commit_changes">
-            <description summary="commit changes and request done by client"/>
-        </request>
-
-        <event name="screen">
-            <description summary="Receive new addtional screen"/>
-            <arg name="id_screen" type="uint"/>
-            <arg name="screen" type="new_id" interface="ivi_controller_screen"/>
-        </event>
-
-        <event name="layer">
-            <description summary="Receive id_layer/ivi_layer and a controller to control ivi_layer"/>
-            <arg name="id_layer" type="uint"/>
-            <arg name="layer" type="new_id" interface="ivi_layer"/>
-            <arg name="controller" type="new_id" interface="ivi_controller_layer"/>
-        </event>
-
-        <event name="surface">
-            <description summary="Receive id_surface/ivi_surface and a controller to control ivi_surface"/>
-            <arg name="id_surface" type="uint"/>
-            <arg name="surface" type="new_id" interface="ivi_surface"/>
-            <arg name="controller_surface" type="new_id" interface="ivi_controller_surface"/>
-        </event>
-
-    </interface>
-
-    <interface name="ivi_client" version="1">
-        <description summary="creation of ivi_surface/ivi_layer"/>
-
-        <request name="surface_create">
-            <description summary="ilm_surfaceCreate"/>
-            <arg name="id_surface" type="uint"/>
-            <arg name="surface" type="object" interface="wl_surface" allow-null="true"/>
-            <arg name="width" type="int"/>
-            <arg name="height" type="int"/>
-            <arg name="id" type="new_id" interface="ivi_surface"/>
-        </request>
-
-        <request name="layer_create">
-            <description summary="ilm_layerCreateWithDimension"/>
-            <arg name="id_layer" type="uint"/>
-            <arg name="width" type="int"/>
-            <arg name="height" type="int"/>
-            <arg name="id" type="new_id" interface="ivi_layer"/>
-        </request>
-
-    </interface>
-
-</protocol>
+<?xml version="1.0" encoding="UTF-8"?>\r
+<protocol name="ivi_controller">\r
+\r
+    <copyright>\r
+    Copyright (C) 2013 DENSO CORPORATION\r
+    Copyright (c) 2013 BMW Car IT GmbH\r
+\r
+    Permission is hereby granted, free of charge, to any person obtaining a copy\r
+    of this software and associated documentation files (the "Software"), to deal\r
+    in the Software without restriction, including without limitation the rights\r
+    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
+    copies of the Software, and to permit persons to whom the Software is\r
+    furnished to do so, subject to the following conditions:\r
+\r
+    The above copyright notice and this permission notice shall be included in\r
+    all copies or substantial portions of the Software.\r
+\r
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
+    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
+    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
+    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
+    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
+    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
+    THE SOFTWARE.\r
+    </copyright>\r
+\r
+    <interface name="ivi_layer" version="1">\r
+        <description summary="Tell property change of ivi_layer to client"/>\r
+\r
+        <request name="destroy" type="destructor">\r
+            <description summary="destroy ivi_layer"/>\r
+        </request>\r
+\r
+    </interface>\r
+\r
+    <interface name="ivi_controller_surface" version="1">\r
+        <description summary="Request property change of ivi_surface to server"/>\r
+\r
+        <request name="set_visibility">\r
+            <description summary="Set Visibility"/>\r
+            <arg name="visibility" type="uint"/>\r
+        </request>\r
+\r
+        <request name="set_opacity">\r
+            <description summary="Set Opacity"/>\r
+            <arg name="opacity" type="fixed"/>\r
+        </request>\r
+\r
+        <request name="set_source_rectangle">\r
+            <description summary="Set the area of wl_surface which should be used for the rendering">\r
+                x:      horizontal start position of the used area\r
+                y:      vertical start position of the used area\r
+                width : width of the area\r
+                height: height of the area\r
+            </description>\r
+            <arg name="x" type="int"/>\r
+            <arg name="y" type="int"/>\r
+            <arg name="width" type="int"/>\r
+            <arg name="height" type="int"/>\r
+        </request>\r
+\r
+        <request name="set_destination_rectangle">\r
+            <description summary="Set the destination area of a surface within a layer for rendering">\r
+                Set the destination area of a wl_surface within a layer for rendering. The surface will be scaled to this rectangle for rendering.\r
+                x:      horizontal start position of the used area\r
+                y:      vertical start position of the used area\r
+                width : width of the area\r
+                height: height of the area\r
+            </description>\r
+            <arg name="x" type="int"/>\r
+            <arg name="y" type="int"/>\r
+            <arg name="width" type="int"/>\r
+            <arg name="height" type="int"/>\r
+        </request>\r
+\r
+        <request name="set_dimension">\r
+            <description summary="Set Dimension"/>\r
+            <arg name="width" type="int"/>\r
+            <arg name="height" type="int"/>\r
+        </request>\r
+\r
+        <request name="set_position">\r
+            <description summary="Set Position"/>\r
+            <arg name="x" type="int"/>\r
+            <arg name="y" type="int"/>\r
+        </request>\r
+\r
+        <request name="set_orientation">\r
+            <description summary="Set Orientation"/>\r
+            <arg name="orientation" type="int"/>\r
+        </request>\r
+\r
+        <request name="screenshot">\r
+            <description summary="Take screenshot"/>\r
+            <arg name="filename" type="string"/>\r
+        </request>\r
+\r
+        <event name="visibility">\r
+            <description summary="sent in response to set_visibility"/>\r
+            <arg name="visibility" type="int"/>\r
+        </event>\r
+\r
+        <event name="opacity">\r
+            <description summary="sent in response to set_opacity"/>\r
+            <arg name="opacity" type="fixed"/>\r
+        </event>\r
+\r
+        <event name="source_rectangle">\r
+            <description summary="sent in response to set_source_rectangle"/>\r
+            <arg name="x" type="int"/>\r
+            <arg name="y" type="int"/>\r
+            <arg name="width" type="int"/>\r
+            <arg name="height" type="int"/>\r
+        </event>\r
+\r
+        <event name="destination_rectangle">\r
+            <description summary="sent in response to set_destination_rectangle"/>\r
+            <arg name="x" type="int"/>\r
+            <arg name="y" type="int"/>\r
+            <arg name="width" type="int"/>\r
+            <arg name="height" type="int"/>\r
+        </event>\r
+\r
+        <event name="dimension">\r
+            <description summary="sent in response to set_dimension"/>\r
+            <arg name="width" type="int"/>\r
+            <arg name="height" type="int"/>\r
+        </event>\r
+\r
+        <event name="position">\r
+            <description summary="sent in response to set_position"/>\r
+            <arg name="x" type="int"/>\r
+            <arg name="y" type="int"/>\r
+        </event>\r
+\r
+        <enum name="orientation">\r
+            <description summary="orientation presets in degrees"/>\r
+            <entry name="0_degrees" value="0"\r
+             summary="not rotated"/>\r
+            <entry name="90_degrees" value="1"\r
+             summary="rotated 90 degrees clockwise"/>\r
+            <entry name="180_degrees" value="2"\r
+             summary="rotated 180 degrees clockwise"/>\r
+            <entry name="270_degrees" value="3"\r
+             summary="rotated 270 degrees clockwise"/>\r
+        </enum>\r
+\r
+        <event name="orientation">\r
+            <description summary="sent in response to set_orientation"/>\r
+            <arg name="orientation" type="int"/>\r
+        </event>\r
+\r
+        <enum name="pixelformat">\r
+            <description summary="pixel format values"/>\r
+            <entry name="r_8" value="0"\r
+             summary="8 bit luminance surface"/>\r
+            <entry name="rgb_888" value="1"\r
+             summary="24 bit rgb surface"/>\r
+            <entry name="rgba_8888" value="2"\r
+             summary="24 bit rgb surface with 8 bit alpha"/>\r
+            <entry name="rgb_565" value="3"\r
+             summary="16 bit rgb surface"/>\r
+            <entry name="rgba_5551" value="4"\r
+             summary="16 bit rgb surface with binary mask"/>\r
+            <entry name="rgba_6661" value="5"\r
+             summary="18 bit rgb surface with binary mask"/>\r
+            <entry name="rgba_4444" value="6"\r
+             summary="12 bit rgb surface with 4 bit alpha"/>\r
+            <entry name="unknown" value="7"\r
+             summary="unknown"/>\r
+        </enum>\r
+\r
+        <event name="pixelformat">\r
+            <description summary="pixelformat"/>\r
+            <arg name="pixelformat" type="int"/>\r
+        </event>\r
+\r
+        <event name="layer">\r
+            <description summary="Receive a ivi_layer this ivi_surface belongs"/>\r
+            <arg name="layer" type="object" interface="ivi_layer" allow-null="true"/>\r
+        </event>\r
+\r
+        <request name="send_stats"/>\r
+\r
+        <event name="stats">\r
+            <description summary="sent in response to send_stats"/>\r
+            <arg name="redraw_count" type="uint"/>\r
+            <arg name="frame_count" type="uint"/>\r
+            <arg name="update_count" type="uint"/>\r
+            <arg name="pid" type="uint"/>\r
+        </event>\r
+\r
+        <event name="destroyed">\r
+            <description summary="destroyed surface event"/>\r
+        </event>\r
+\r
+    </interface>\r
+\r
+    <interface name="ivi_controller_layer" version="1">\r
+        <description summary="Request property change of ivi_layer and add/remove ivi_surface from ivi_layer to server"/>\r
+\r
+        <request name="set_visibility">\r
+            <description summary="Set Visibility"/>\r
+            <arg name="visibility" type="uint"/>\r
+        </request>\r
+\r
+        <request name="set_opacity">\r
+            <description summary="Set Opacity"/>\r
+            <arg name="opacity" type="fixed"/>\r
+        </request>\r
+\r
+        <request name="set_source_rectangle">\r
+            <description summary="Set the area of layer which should be used for the rendering">\r
+                x:      horizontal start position of the used area\r
+                y:      vertical start position of the used area\r
+                width : width of the area\r
+                height: height of the area\r
+            </description>\r
+            <arg name="x" type="int"/>\r
+            <arg name="y" type="int"/>\r
+            <arg name="width" type="int"/>\r
+            <arg name="height" type="int"/>\r
+        </request>\r
+\r
+        <request name="set_destination_rectangle">\r
+            <description summary="Set the destination area on the display for a layer">\r
+                Set the destination area on the display for a layer. The layer will be scaled and positioned to this rectangle for rendering\r
+                x:      horizontal start position of the used area\r
+                y:      vertical start position of the used area\r
+                width : width of the area\r
+                height: height of the area\r
+            </description>\r
+            <arg name="x" type="int"/>\r
+            <arg name="y" type="int"/>\r
+            <arg name="width" type="int"/>\r
+            <arg name="height" type="int"/>\r
+        </request>\r
+\r
+        <request name="set_dimension">\r
+            <description summary="Set Dimension"/>\r
+            <arg name="width" type="int"/>\r
+            <arg name="height" type="int"/>\r
+        </request>\r
+\r
+        <request name="set_position">\r
+            <description summary="Set Position"/>\r
+            <arg name="x" type="int"/>\r
+            <arg name="y" type="int"/>\r
+        </request>\r
+\r
+        <request name="set_orientation">\r
+            <description summary="Set Orientation"/>\r
+            <arg name="orientation" type="int"/>\r
+        </request>\r
+\r
+        <request name="screenshot">\r
+            <description summary="Take screenshot"/>\r
+            <arg name="filename" type="string"/>\r
+        </request>\r
+\r
+        <request name="clear_surfaces">\r
+            <description summary="remove all ivi_surfaces from a layer"/>\r
+        </request>\r
+\r
+        <request name="add_surface">\r
+            <description summary="add a ivi_surface to top order of a ivi_layer"/>\r
+            <arg name="surface" type="object" interface="ivi_surface"/>\r
+        </request>\r
+\r
+        <request name="remove_surface">\r
+            <description summary="remove a ivi_surface from a layer"/>\r
+            <arg name="surface" type="object" interface="ivi_surface"/>\r
+        </request>\r
+\r
+        <request name="set_render_order">\r
+            <description summary="Set Render Order"/>\r
+            <arg name="id_surfaces" type="array"/>\r
+        </request>\r
+\r
+        <event name="visibility">\r
+            <description summary="sent in response to set_visibility"/>\r
+            <arg name="visibility" type="int"/>\r
+        </event>\r
+\r
+        <event name="opacity">\r
+            <description summary="sent in response to set_opacity"/>\r
+            <arg name="opacity" type="fixed"/>\r
+        </event>\r
+\r
+        <event name="source_rectangle">\r
+            <description summary="sent in response to set_source_rectangle"/>\r
+            <arg name="x" type="int"/>\r
+            <arg name="y" type="int"/>\r
+            <arg name="width" type="int"/>\r
+            <arg name="height" type="int"/>\r
+        </event>\r
+\r
+        <event name="destination_rectangle">\r
+            <description summary="sent in response to set_destination_rectangle"/>\r
+            <arg name="x" type="int"/>\r
+            <arg name="y" type="int"/>\r
+            <arg name="width" type="int"/>\r
+            <arg name="height" type="int"/>\r
+        </event>\r
+\r
+        <event name="dimension">\r
+            <description summary="sent in response to set_dimension"/>\r
+            <arg name="width" type="int"/>\r
+            <arg name="height" type="int"/>\r
+        </event>\r
+\r
+        <event name="position">\r
+            <description summary="sent in response to set_position"/>\r
+            <arg name="x" type="int"/>\r
+            <arg name="y" type="int"/>\r
+        </event>\r
+\r
+        <event name="orientation">\r
+            <description summary="sent in response to set_orientation"/>\r
+            <arg name="orientation" type="int"/>\r
+        </event>\r
+\r
+        <event name="screen">\r
+            <description summary="Receive a wl_output this ivi_layer belongs"/>\r
+            <arg name="screen" type="object" interface="wl_output" allow-null="true"/>\r
+        </event>\r
+\r
+        <event name="destroyed">\r
+            <description summary="destroyed layer event"/>\r
+        </event>\r
+\r
+    </interface>\r
+\r
+    <interface name="ivi_controller_screen" version="1">\r
+        <description summary="Request add/remove layer from ivi_layer to server"/>\r
+\r
+        <request name="destroy" type="destructor">\r
+            <description summary="destroy ivi_controller_screen"/>\r
+        </request>\r
+\r
+        <request name="clear">\r
+            <description summary="remove all ivi_layers from wl_output"/>\r
+        </request>\r
+\r
+        <request name="add_layer">\r
+            <description summary="add a ivi_layer to top order of a wl_output"/>\r
+            <arg name="layer" type="object" interface="ivi_layer"/>\r
+        </request>\r
+\r
+        <request name="screenshot">\r
+            <description summary="Take screenshot"/>\r
+            <arg name="filename" type="string"/>\r
+        </request>\r
+\r
+        <request name="set_render_order">\r
+            <description summary="Set Render Order"/>\r
+            <arg name="id_layers" type="array"/>\r
+        </request>\r
+\r
+    </interface>\r
+\r
+    <interface name="ivi_controller" version="1">\r
+        <description summary="Interface for central controller of layers and surfaces"/>\r
+\r
+        <request name="commit_changes">\r
+            <description summary="commit changes and request done by client"/>\r
+        </request>\r
+\r
+        <event name="screen">\r
+            <description summary="Receive new addtional screen"/>\r
+            <arg name="id_screen" type="uint"/>\r
+            <arg name="screen" type="new_id" interface="ivi_controller_screen"/>\r
+        </event>\r
+\r
+        <request name="layer_create">\r
+            <description summary="ilm_layerCreateWithDimension"/>\r
+            <arg name="id_layer" type="uint"/>\r
+            <arg name="width" type="int"/>\r
+            <arg name="height" type="int"/>\r
+            <arg name="id" type="new_id" interface="ivi_layer"/>\r
+        </request>\r
+\r
+        <event name="layer">\r
+            <description summary="Receive id_layer/ivi_layer and a controller to control ivi_layer"/>\r
+            <arg name="id_layer" type="uint"/>\r
+            <arg name="layer" type="new_id" interface="ivi_layer"/>\r
+            <arg name="controller" type="new_id" interface="ivi_controller_layer"/>\r
+        </event>\r
+\r
+        <event name="surface">\r
+            <description summary="Receive id_surface/ivi_surface and a controller to control ivi_surface"/>\r
+            <arg name="id_surface" type="uint"/>\r
+            <arg name="surface" type="new_id" interface="ivi_surface"/>\r
+            <arg name="controller_surface" type="new_id" interface="ivi_controller_surface"/>\r
+        </event>\r
+\r
+        <event name="nativesurface">\r
+            <description summary="Receive wl_surface and properties to control pure wl_shell_surface"/>\r
+            <arg name="surface" type="new_id" interface="wl_surface"/>\r
+            <arg name="pid" type="uint"/>\r
+            <arg name="title" type="string"/>\r
+            <arg name="width" type="int"/>\r
+            <arg name="height" type="int"/>\r
+        </event>\r
+\r
+    </interface>\r
+\r
+</protocol>
\ No newline at end of file