weston_10.0_aglcore: Add helper iterator to loop over debug scopes
[AGL/meta-agl.git] / meta-agl-core / recipes-graphics / wayland / waltham / 0002-commandxml-Add-support-wthp_app_id-interface.patch
1 From d30005429fe92daa14151c2a6175d5cf19506cac Mon Sep 17 00:00:00 2001
2 From: Marius Vlad <marius.vlad@collabora.com>
3 Date: Wed, 7 Oct 2020 16:36:38 +0300
4 Subject: [PATCH 2/2] commandxml: Add support wthp_app_id interface
5
6 With it, we hang off the app_id which we can use to pass it to the
7 receiver side.
8
9 Bug-AGL: SPEC-3601
10
11 Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
12 ---
13  data/command.xml                | 29 +++++++++++++++++++++++++++++
14  src/waltham/header-preamble.txt |  1 +
15  2 files changed, 30 insertions(+)
16
17 diff --git a/data/command.xml b/data/command.xml
18 index a03082b..cb53f75 100644
19 --- a/data/command.xml
20 +++ b/data/command.xml
21 @@ -1814,6 +1814,35 @@
22  
23    </interface>
24  
25 +  <interface name="wthp_ivi_app_id" version="1">
26 +    <description summary="create ivi-style surfaces">
27 +      This interface is exposed as a global singleton.
28 +      This interface is implemented by servers that provide IVI-style user interfaces.
29 +      It allows clients to associate an ivi_surface with wthp_surface.
30 +    </description>
31 +
32 +    <enum name="error">
33 +      <entry name="role" value="0" summary="given wthp_surface has another role"/>
34 +    </enum>
35 +
36 +    <request name="surface_create">
37 +      <description summary="create ivi_surface with app_id in ivi compositor">
38 +        This request gives the wthp_surface the role of an IVI Surface. Creating more than
39 +        one ivi_surface for a wthp_surface is not allowed. Note, that this still allows the
40 +        following example:
41 +
42 +         1. create a wthp_surface
43 +         2. create ivi_surface for the wthp_surface
44 +         3. destroy the ivi_surface
45 +
46 +      </description>
47 +      <arg name="app_id" type="string"/>
48 +      <arg name="surface" type="object" interface="wthp_surface"/>
49 +      <arg name="id" type="new_id" interface="wthp_ivi_surface"/>
50 +    </request>
51 +
52 +  </interface>
53 +
54    <interface name="dummy" version="1">
55      <request name="dummy_request">
56      </request>
57 diff --git a/src/waltham/header-preamble.txt b/src/waltham/header-preamble.txt
58 index df765cc..2409859 100644
59 --- a/src/waltham/header-preamble.txt
60 +++ b/src/waltham/header-preamble.txt
61 @@ -50,5 +50,6 @@ struct wthp_touch;
62  
63  struct wthp_ivi_surface;
64  struct wthp_ivi_application;
65 +struct wthp_ivi_app_id;
66  
67  struct dummy;
68 -- 
69 2.28.0
70