[][src]Function realsense_sys::rs2_set_devices_changed_callback_cpp

pub unsafe extern "C" fn rs2_set_devices_changed_callback_cpp(
    context: *mut rs2_context,
    callback: *mut rs2_devices_changed_callback,
    error: *mut *mut rs2_error
)

set callback to get devices changed events these events will be raised by the context whenever new RealSense device is connected or existing device gets disconnected \param context Object representing librealsense session \param[in] callback callback object created from c++ application. ownership over the callback object is moved into the context \param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored