summaryrefslogtreecommitdiff
path: root/weston-ivi-shell
diff options
context:
space:
mode:
authorNobuhiko Tanibata <ntanibata@jp.adit-jv.com>2015-04-14 17:22:38 +0900
committerNobuhiko Tanibata <ntanibata@jp.adit-jv.com>2015-04-27 15:12:55 +0900
commit9c7638751ced4a8bb13dd79ceec5f0f5e5738dd2 (patch)
treedd03c294b2a7e96e7a713fe218c884cb06a58a2e /weston-ivi-shell
parent4aca4bdf9e5829a45d659f6d82bd047ba0795f26 (diff)
downloadwayland-ivi-extension-9c7638751ced4a8bb13dd79ceec5f0f5e5738dd2.tar.gz
ivi-controller: add wrapper functions to call ivi_controller_interface of surface screenshot
Signed-off-by: Nobuhiko Tanibata <ntanibata@jp.adit-jv.com>
Diffstat (limited to 'weston-ivi-shell')
-rwxr-xr-xweston-ivi-shell/src/ivi-extension.c15
-rw-r--r--weston-ivi-shell/src/ivi-extension.h10
2 files changed, 25 insertions, 0 deletions
diff --git a/weston-ivi-shell/src/ivi-extension.c b/weston-ivi-shell/src/ivi-extension.c
index fd1289b..0b5a740 100755
--- a/weston-ivi-shell/src/ivi-extension.c
+++ b/weston-ivi-shell/src/ivi-extension.c
@@ -318,6 +318,21 @@ ivi_extension_surface_set_transition_duration(struct ivishell *shell,
}
int32_t
+ivi_extension_surface_dump(struct ivishell *shell,
+ struct weston_surface *surface,
+ void *target,
+ size_t size,
+ int32_t x,
+ int32_t y,
+ int32_t width,
+ int32_t height)
+{
+ struct ivi_controller_shell *controller_shell = (struct ivi_controller_shell*)shell;
+
+ return controller_shell->interface->surface_dump(surface, target, size, x, y, width, height);
+}
+
+int32_t
ivi_extension_surface_get_size(struct ivishell *shell,
struct ivi_layout_surface *ivisurf,
int32_t *width,
diff --git a/weston-ivi-shell/src/ivi-extension.h b/weston-ivi-shell/src/ivi-extension.h
index 6eef00d..ea3f480 100644
--- a/weston-ivi-shell/src/ivi-extension.h
+++ b/weston-ivi-shell/src/ivi-extension.h
@@ -204,6 +204,16 @@ ivi_extension_surface_set_transition_duration(struct ivishell *shell,
uint32_t duration);
int32_t
+ivi_extension_surface_dump(struct ivishell *ivishell,
+ struct weston_surface *surface,
+ void *target,
+ size_t size,
+ int32_t x,
+ int32_t y,
+ int32_t width,
+ int32_t height);
+
+int32_t
ivi_extension_surface_get_size(struct ivishell *shell,
struct ivi_layout_surface *ivisurf,
int32_t *width,