ivi-shell: rework configure_surface notification

Graphics / Wayland / Weston - Ucan, Emre (ADITG/SW1) [de.adit-jv.com] - 5 April 2016 03:53 UTC

The add_notification_configure_surface API accepts a simple wl_listener instead of a ivi-shell specific notification function. Therefore, the API is renamed to add_listener_configure_surface.

This change has several advantages: 1. Code cleanup 2. No dynamic memory allocation. Listeners are allocated by controller plugins 3. Remove API is not needed. Controller plugins can easily remove the listener link.

The remove API is removed too:- ivi_layout_remove_notification_configure_surface

c49aa5a ivi-shell: rework configure_surface notification
ivi-shell/hmi-controller.c | 14 +++--
ivi-shell/ivi-layout-export.h | 19 +++----
ivi-shell/ivi-layout.c | 111 +++-----------------------------------
tests/ivi_layout-internal-test.c | 2 +-
tests/ivi_layout-test-plugin.c | 17 +++---
5 files changed, 33 insertions(+), 130 deletions(-)

Upstream: cgit.freedesktop.org


  • Share