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
6 With it, we hang off the app_id which we can use to pass it to the
11 Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
13 data/command.xml | 29 +++++++++++++++++++++++++++++
14 src/waltham/header-preamble.txt | 1 +
15 2 files changed, 30 insertions(+)
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 @@
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.
33 + <entry name="role" value="0" summary="given wthp_surface has another role"/>
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
42 + 1. create a wthp_surface
43 + 2. create ivi_surface for the wthp_surface
44 + 3. destroy the ivi_surface
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"/>
54 <interface name="dummy" version="1">
55 <request name="dummy_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;
63 struct wthp_ivi_surface;
64 struct wthp_ivi_application;
65 +struct wthp_ivi_app_id;