Re: [PATCH weston 02/16] ivi-shell: rework surface_add_notification API

2016-04-01 Thread Pekka Paalanen
On Thu, 31 Mar 2016 11:08:58 + "Ucan, Emre (ADITG/SW1)" wrote: > The surface_add_notification API accepts a simple > wl_listener instead of a ivi-shell specific notification > function. Therefore, the API is renamed to surface_add_listener. > > This change has several advantages: > 1. Code c

[PATCH weston 02/16] ivi-shell: rework surface_add_notification API

2016-03-31 Thread Ucan, Emre (ADITG/SW1)
The surface_add_notification API accepts a simple wl_listener instead of a ivi-shell specific notification function. Therefore, the API is renamed to surface_add_listener. This change has several advantages: 1. Code cleanup 2. No dynamic memory allocation. Listeners are allocated by controller