libcamera: camera: Rename name() to id()
Rename Camera::name() to camera::id() to better describe what it represents, a unique and stable ID for the camera. While at it improve the documentation for the camera ID to describe it needs to be stable for a camera between resets of the system. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -1108,7 +1108,7 @@ int CameraDevice::configureStreams(camera3_stream_configuration_t *stream_list)
|
||||
int ret = camera_->configure(config_.get());
|
||||
if (ret) {
|
||||
LOG(HAL, Error) << "Failed to configure camera '"
|
||||
<< camera_->name() << "'";
|
||||
<< camera_->id() << "'";
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -1276,7 +1276,7 @@ void CameraDevice::requestComplete(Request *request)
|
||||
|
||||
std::string CameraDevice::logPrefix() const
|
||||
{
|
||||
return "'" + camera_->name() + "'";
|
||||
return "'" + camera_->id() + "'";
|
||||
}
|
||||
|
||||
void CameraDevice::notifyShutter(uint32_t frameNumber, uint64_t timestamp)
|
||||
|
||||
Reference in New Issue
Block a user