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:
parent
53d38b19ed
commit
2e7c80a4f9
17 changed files with 91 additions and 70 deletions
|
@ -95,7 +95,7 @@ int RKISP1PipelineTest::run()
|
|||
{
|
||||
auto cameras = cameraManager_->cameras();
|
||||
for (const std::shared_ptr<Camera> &cam : cameras)
|
||||
cout << "Found camera '" << cam->name() << "'" << endl;
|
||||
cout << "Found camera '" << cam->id() << "'" << endl;
|
||||
|
||||
if (cameras.size() != sensors_) {
|
||||
cerr << cameras.size() << " cameras registered, but " << sensors_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue