ivi-shell: rework configure_surface notification
authorUcan, Emre (ADITG/SW1) <eucan@de.adit-jv.com>
Mon, 4 Apr 2016 08:05:20 +0000 (08:05 +0000)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 5 Apr 2016 08:53:48 +0000 (11:53 +0300)
commitc49aa5acada6045f084bbacdb545143c3828b5d0
tree0193c510f5fae0d3fdf44400f9b30781aa09e0c5
parent67f0aa87674c573fbf68a1aaa1e0b75a2f4c7c62
ivi-shell: rework configure_surface notification

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

Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
ivi-shell/hmi-controller.c
ivi-shell/ivi-layout-export.h
ivi-shell/ivi-layout.c
tests/ivi_layout-internal-test.c
tests/ivi_layout-test-plugin.c