blob: 5c732b1474d490964214baed8d5f024aa41afa12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
From 626341e48f4159d91ff39af2d0dc7bc720521121 Mon Sep 17 00:00:00 2001
From: Grigory Kletsko <grigory.kletsko@cogentembedded.com>
Date: Tue, 13 Jun 2017 23:58:37 +0300
Subject: [PATCH 4/4] Add wl ivi shell sirface creating support
---
ivi-shell/ivi-layout-export.h | 19 +++++++++++++++++++
ivi-shell/ivi-layout.c | 2 ++
2 files changed, 21 insertions(+)
diff --git a/ivi-shell/ivi-layout-export.h b/ivi-shell/ivi-layout-export.h
index 33aa820..78dab61 100644
--- a/ivi-shell/ivi-layout-export.h
+++ b/ivi-shell/ivi-layout-export.h
@@ -149,6 +149,25 @@ struct ivi_layout_interface {
*/
int32_t (*commit_changes)(void);
+ /**
+ * \brief Creates an ivi_layout_surface.
+ *
+ * \return IVI_SUCCEEDED if the method call was successful
+ * \return IVI_FAILED if the method call was failed
+ */
+ struct ivi_layout_surface* (*surface_create)(
+ struct weston_surface *wl_surface,
+ uint32_t id_surface);
+
+ /**
+ * \brief Configure an ivi_layout_surface
+ *
+ * \return IVI_SUCCEEDED if the method call was successful
+ * \return IVI_FAILED if the method call was failed
+ */
+ void (*surface_configure)(struct ivi_layout_surface *ivisurf,
+ int32_t width, int32_t height);
+
/**
* surface controller interface
*/
diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c
index 7fa8b33..161694d 100644
--- a/ivi-shell/ivi-layout.c
+++ b/ivi-shell/ivi-layout.c
@@ -1985,6 +1985,8 @@ static struct ivi_layout_interface ivi_layout_interface = {
* commit all changes
*/
.commit_changes = ivi_layout_commit_changes,
+ .surface_create = ivi_layout_surface_create,
+ .surface_configure = ivi_layout_surface_configure,
/**
* surface controller interfaces
--
2.7.4
|