Provide AGL extension, wl_shell support for Weston ivi-shell.
[AGL/meta-agl-demo.git] / recipes-graphics / wayland / weston / 0001-weston-patch-for-wl-shell-emulator.patch
1 ---
2  ivi-shell/ivi-layout-export.h | 19 +++++++++++++++++++
3  ivi-shell/ivi-layout.c        |  2 ++
4  2 files changed, 21 insertions(+)
5
6 diff --git a/ivi-shell/ivi-layout-export.h b/ivi-shell/ivi-layout-export.h
7 index 8a92009..7f93c82 100644
8 --- a/ivi-shell/ivi-layout-export.h
9 +++ b/ivi-shell/ivi-layout-export.h
10 @@ -185,6 +185,25 @@ struct ivi_controller_interface {
11         int32_t (*commit_changes)(void);
12
13         /**
14 +        * \brief Creates an ivi_layout_surface.
15 +        *
16 +        * \return IVI_SUCCEEDED if the method call was successful
17 +        * \return IVI_FAILED if the method call was failed
18 +        */
19 +       struct ivi_layout_surface* (*surface_create)(
20 +                               struct weston_surface *wl_surface,
21 +                               uint32_t id_surface);
22 +
23 +       /**
24 +        * \brief Configure an ivi_layout_surface
25 +        *
26 +        * \return IVI_SUCCEEDED if the method call was successful
27 +        * \return IVI_FAILED if the method call was failed
28 +        */
29 +       void (*surface_configure)(struct ivi_layout_surface *ivisurf,
30 +                                 int32_t width, int32_t height);
31 +
32 +       /**
33          * surface controller interface
34          */
35
36 diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c
37 index 51d0a8d..76891bf 100644
38 --- a/ivi-shell/ivi-layout.c
39 +++ b/ivi-shell/ivi-layout.c
40 @@ -2870,6 +2870,8 @@ static struct ivi_controller_interface ivi_controller_interface = {
41          */
42         .commit_changes = ivi_layout_commit_changes,
43
44 +       .surface_create = ivi_layout_surface_create,
45 +       .surface_configure = ivi_layout_surface_configure,
46         /**
47          * surface controller interfaces
48          */
49 --
50 1.8.3.1