Function rs2_is_device_extendable_to

Function Documentation

int rs2_is_device_extendable_to(const rs2_device *device, rs2_extension extension, rs2_error **error)

Test if the given device can be extended to the requested extension.

Parameters:
  • device[in] Realsense device

  • extension[in] The extension to which the device should be tested if it is extendable

  • error[out] If non-null, receives any error that occurs during this call, otherwise, errors are ignored

Returns:

Non-zero value iff the device can be extended to the given extension