Function rs2_create_device

Function Documentation

rs2_device *rs2_create_device(const rs2_device_list *info_list, int index, rs2_error **error)

Creates a device by index. The device object represents a physical camera and provides the means to manipulate it.

Parameters:
  • info_list[in] the list containing the device to retrieve

  • index[in] The zero based index of device to retrieve

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

Returns:

The requested device, should be released by rs2_delete_device