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

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

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_remove_layer

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