Re: [PATCH 1/5] icmp6: Allow multiple event handlers and clean up

Denis Kenzior <denkenz at gmail.com>
Newsgroups dev.linux.lists.ell
Message-ID <[email protected]>
Hi Andrew,

On 1/6/22 09:05, Andrew Zaborowski wrote:
> Allow registering multiple event handlers and rename
> l_icmp6_client_set_event_handler to l_icmp6_client_add_event_handler
> accordingly.  The use case is for a client like IWD to be able to track
> routing information.
> 
> This also fixes a bug where the destroy callback passed to
> l_icmp6_client_set_event_handler wasn't actually used except if
> l_icmp6_client_set_event_handler was called again.
> 
> While there, add an event_data parameter to the event callback, rename
> the "userdata" parameters to "user_data" for consistency and clean up an
> extra empty line.
> ---
>   ell/dhcp6.c |  4 ++--
>   ell/ell.sym |  2 +-
>   ell/icmp6.c | 56 +++++++++++++++++++++++++++++++++++++++--------------
>   ell/icmp6.h |  8 ++++----
>   4 files changed, 48 insertions(+), 22 deletions(-)
> 

Applied, thanks.

Regards,
-Denis
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.