ivi-application.xml: apply the latest protocol from weston-ivi-shell
authorNobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
Sat, 13 Sep 2014 02:03:30 +0000 (19:03 -0700)
committerNobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Fri, 19 Sep 2014 04:19:07 +0000 (13:19 +0900)
- Remove warning events. This is notified to ivi-controller by
  callback now.
- Add configure event to suggest resize of surface. When ivi-controller
  changes size of ivi_surface, client will receive this event.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
protocol/ivi-application.xml

index 833fd38..b06ae6c 100644 (file)
             <arg name="visibility" type="int"/>
         </event>
 
-        <enum name="warning_code">
-            <description summary="possible warning codes returned by ivi compositor">
-                These define all possible warning codes returned by ivi compositor on server-side warnings.
-                invalid_wl_surface:
-                    - wl_surface already has a another role.
-                   - wl_surface is destroyed before the ivi_surface is destroyed.
-                ivi_id_in_use: ivi_id is already assigned by another application.
-            </description>
-            <entry name="invalid_wl_surface" value="1" summary="wl_surface is invalid"/>
-            <entry name="ivi_id_in_use" value="2" summary="ivi_id is in use and can not be shared"/>
-        </enum>
-
-        <event name="warning">
-            <description summary="server-side warning detected">
-                The ivi compositor encountered warning while processing a request by this
-                application. The warning is defined by argument warning_code and optional
-                warning_text. If the warning is detected, client shall destroy the ivi_surface
-                object.
-
-               When a warning event is sent, the compositor turns the ivi_surface object inert.
-               The ivi_surface will not deliver further events, all requests on it are ignored
-               except 'destroy', and the association to the ivi_id is removed. The client
-               should destroy the ivi_surface object. If an inert ivi_surface object is used as
-               an argument to any other object's request, that request will [produce a fatal
-               error / produce a warning / be ignored].
-            </description>
-            <arg name="warning_code" type="int"/>
-            <arg name="warning_text" type="string" allow-null="true"/>
+        <event name="configure">
+            <arg name="width" type="int"/>
+            <arg name="height" type="int"/>
         </event>
 
     </interface>