RFC: return value of event_register()

Simon Glass sjg at chromium.org
Thu Oct 6 21:07:28 CEST 2022


+U-Boot Mailing List

On Wed, 5 Oct 2022 at 02:54, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> Hello Simon,
>
> event_register() currently returns an integer to indicate success.
>
> If we ever want to implement an event_unregister() function ,it would be
> preferable if the return value of event_register were of type struct
> event_spy *.
>
> Such a pointer is guaranteed to be unique while the string spy_id may
> not be unique or even NULL.
>
> What are your thoughts?
>
> Best regards
>
> Heinrich


More information about the U-Boot mailing list