uint32_t duration);
struct ivi_layout_interface {
+ struct weston_surface* (*get_weston_surface)(
+ struct ivi_layout_surface *surface);
+
struct weston_view *(*get_weston_view)(
struct ivi_layout_surface *surface);
}
/***called from ivi-shell**/
+static struct weston_surface *
+ivi_layout_get_weston_surface(struct ivi_layout_surface *surface)
+{
+ return (surface != NULL) ? surface->surface : NULL;
+}
+
static struct weston_view *
ivi_layout_get_weston_view(struct ivi_layout_surface *surface)
{
wl_signal_add(&ivisurf->configured, listener);
}
+
WL_EXPORT struct ivi_layout_interface ivi_layout_interface = {
+ .get_weston_surface = ivi_layout_get_weston_surface,
.get_weston_view = ivi_layout_get_weston_view,
.surface_configure = ivi_layout_surface_configure,
.surface_create = ivi_layout_surface_create,