Function rs2_set_options_changed_callback
Defined in File rs_option.h
Function Documentation
-
void rs2_set_options_changed_callback(rs2_options *options, rs2_options_changed_callback_ptr callback, rs2_error **error)
Sets a callback in case an option in this options container value is updated. Will create a thread that will periodically check the options in the container for updates. The update period is determined by the context’s ‘options-update-interval’ setting.
- Parameters:
options – [in] the options container
callback – [in] callback function pointer to update on value changes
error – [out] if non-null, receives any error that occurs during this call, otherwise, errors are ignored