Re: RFC: return value of event_register()

6 Oct
2022
6 Oct
'22
9:07 p.m.
+U-Boot Mailing List
On Wed, 5 Oct 2022 at 02:54, Heinrich Schuchardt heinrich.schuchardt@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
950
Age (days ago)
950
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Glass