lv_subject_add_observer_obj() function
Add an observer to a subject for an object. When the object is deleted, it will be removed from the subject automatically.
Arguments
subject
pointer to the subject
observer_cb
callback to call
user_data
optional user data
Return value
pointer to the created observer