lv_subject_add_observer() function
Add an observer to a subject. When the subject changes `observer_cb` will be called.
Arguments
subject
pointer to the subject
observer_cb
callback to call
user_data
optional user data
Return value
pointer to the created observer