[][src]Function realsense_sys::rs2_create_device_from_sensor

pub unsafe extern "C" fn rs2_create_device_from_sensor(
    sensor: *const rs2_sensor,
    error: *mut *mut rs2_error
) -> *mut rs2_device

This is a helper function allowing the user to discover the device from one of its sensors \param[in] sensor Pointer to a sensor \param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored \return new device wrapper for the device of the sensor. Needs to be released by delete_device