Skip to content
  • eucan's avatar
    ivi-shell: rework layer_add_notification API · 3750d1b2
    eucan authored and Pekka Paalanen's avatar Pekka Paalanen committed
    
    
    The layer_add_notification API accepts a simple
    wl_listener instead of a ivi-shell specific notification
    function. Therefore, the API is renamed to layer_add_listener.
    
    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.
    
    This patch also remove two APIs which are not needed:
    - ivi_layout_layer_remove_notification
    - ivi_layout_layer_remove_notification_by_callback
    
    Signed-off-by: default avatarEmre Ucan <eucan@de.adit-jv.com>
    Reviewed-by: default avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
    3750d1b2