Update GENIVI Audio Manager to 7.4 for CES2017 demo.
[AGL/meta-agl.git] / meta-agl-bsp / meta-ti / recipes-arago / weston / weston / 0007-ivi-shell-layout-Export-surface-destroy-callback.patch
1 From 9f47b84c94c71ef8bb1459c4c2b2759343432558 Mon Sep 17 00:00:00 2001
2 From: Volodymyr Riazantsev <volodymyr.riazantsev@globallogic.com>
3 Date: Fri, 1 Jul 2016 22:38:43 -0400
4 Subject: [PATCH 7/8] ivi-shell: layout: Export surface destroy callback
5
6 [HACK]
7 Some applications still using regular shell interface and
8 thereby must be handled through weston native notifications.
9
10 Only one and single notification callback accepted and it can be
11 in external module.
12
13 So we need to export call back for remove surface inside layout
14 controlled.
15
16 This is a obvious hack.
17
18 Signed-off-by: Volodymyr Riazantsev <volodymyr.riazantsev@globallogic.com>
19 Signed-off-by: Karthik Ramanan <a0393906@ti.com>
20 ---
21  ivi-shell/ivi-layout-export.h | 7 +++++++
22  ivi-shell/ivi-layout.c        | 4 +++-
23  2 files changed, 10 insertions(+), 1 deletion(-)
24
25 diff --git a/ivi-shell/ivi-layout-export.h b/ivi-shell/ivi-layout-export.h
26 index 7f93c82..f5ea54e 100644
27 --- a/ivi-shell/ivi-layout-export.h
28 +++ b/ivi-shell/ivi-layout-export.h
29 @@ -823,6 +823,13 @@ struct ivi_controller_interface {
30          * \return id of ivi_screen
31          */
32         uint32_t (*get_id_of_screen)(struct ivi_layout_screen *iviscrn);
33 +
34 +       /**
35 +        * \brief HACK. Destroy surface.
36 +        *
37 +        */
38 +       void (*surface_destroy)(struct ivi_layout_surface *ivisurf);
39 +
40  };
41  
42  #ifdef __cplusplus
43 diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c
44 index 85cb457..7d2daa1 100644
45 --- a/ivi-shell/ivi-layout.c
46 +++ b/ivi-shell/ivi-layout.c
47 @@ -3016,7 +3016,9 @@ static struct ivi_controller_interface ivi_controller_interface = {
48         /**
49          * screen controller interfaces part2
50          */
51 -       .get_id_of_screen       = ivi_layout_get_id_of_screen
52 +       .get_id_of_screen       = ivi_layout_get_id_of_screen,
53 +
54 +       .surface_destroy        = ivi_layout_surface_destroy
55  };
56  
57  int
58 -- 
59 2.4.5
60