summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUcan, Emre (ADITG/SW1) <eucan@de.adit-jv.com>2016-03-17 15:30:49 +0000
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2016-03-24 11:10:07 +0200
commit6d89b1cdc418d169334a8d5e65e8acbb836b0fe5 (patch)
tree571833e410dc7289dda1c85762d75bd57949be79
parentb216c92d4d19d4b88817d088038de90f3d95ec06 (diff)
ivi-shell: remove ivi_layout_get_screen_from_id API
The controller plugins does not use ivi screens for IVI layout APIs. They use weston outputs directly. Therefore, this API is unnecessary. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Acked-by: Wataru Natsume <wnatsume@jp.adit-jv.com>
-rw-r--r--ivi-shell/ivi-layout-export.h10
-rw-r--r--ivi-shell/ivi-layout.c17
2 files changed, 1 insertions, 26 deletions
diff --git a/ivi-shell/ivi-layout-export.h b/ivi-shell/ivi-layout-export.h
index 249ea164..4fee9780 100644
--- a/ivi-shell/ivi-layout-export.h
+++ b/ivi-shell/ivi-layout-export.h
@@ -558,16 +558,6 @@ struct ivi_layout_interface {
*/
/**
- * \brief get ivi_layout_screen from id of ivi_screen
- *
- * \return (struct ivi_layout_screen *)
- * if the method call was successful
- * \return NULL if the method call was failed
- */
- struct ivi_layout_screen *
- (*get_screen_from_id)(uint32_t id_screen);
-
- /**
* \brief Get the weston_outputs under the given ivi_layer
*
* \return IVI_SUCCEEDED if the method call was successful
diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c
index 798049ad..f1ee2dbc 100644
--- a/ivi-shell/ivi-layout.c
+++ b/ivi-shell/ivi-layout.c
@@ -1361,20 +1361,6 @@ ivi_layout_get_surface_from_id(uint32_t id_surface)
return NULL;
}
-static struct ivi_layout_screen *
-ivi_layout_get_screen_from_id(uint32_t id_screen)
-{
- struct ivi_layout *layout = get_instance();
- struct ivi_layout_screen *iviscrn = NULL;
-
- wl_list_for_each(iviscrn, &layout->screen_list, link) {
- if (iviscrn->output->id == id_screen)
- return iviscrn;
- }
-
- return NULL;
-}
-
static int32_t
ivi_layout_surface_add_notification(struct ivi_layout_surface *ivisurf,
surface_property_notification_func callback,
@@ -2444,9 +2430,8 @@ static struct ivi_layout_interface ivi_layout_interface = {
.layer_set_transition = ivi_layout_layer_set_transition,
/**
- * screen controller interfaces part1
+ * screen controller interfaces
*/
- .get_screen_from_id = ivi_layout_get_screen_from_id,
.get_screens_under_layer = ivi_layout_get_screens_under_layer,
.screen_add_layer = ivi_layout_screen_add_layer,
.screen_set_render_order = ivi_layout_screen_set_render_order,