ivi-shell: rework remove_surface notification
The add_notification_remove_surface API accepts a simple wl_listener instead of a ivi-shell specific notification function. Therefore, the API is renamed to add_listener_remove_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_remove_surface Signed-off-by:Emre Ucan <eucan@de.adit-jv.com> Reviewed-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Showing
- ivi-shell/hmi-controller.c 9 additions, 5 deletionsivi-shell/hmi-controller.c
- ivi-shell/ivi-layout-export.h 7 additions, 12 deletionsivi-shell/ivi-layout-export.h
- ivi-shell/ivi-layout.c 6 additions, 43 deletionsivi-shell/ivi-layout.c
- tests/ivi_layout-internal-test.c 1 addition, 1 deletiontests/ivi_layout-internal-test.c
- tests/ivi_layout-test-plugin.c 11 additions, 8 deletionstests/ivi_layout-test-plugin.c
Loading
Please register or sign in to comment