Function rs2_device_list_contains

Function Documentation

int rs2_device_list_contains(const rs2_device_list *info_list, const rs2_device *device, rs2_error **error)

Checks if a specific device is contained inside a device list.

Parameters:
  • info_list[in] The list of devices to check in

  • device[in] RealSense device to check for

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

Returns:

True if the device is in the list and false otherwise