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:
@@ -71,13 +71,13 @@ class Camera final : public Object, public std::enable_shared_from_this<Camera>
|
||||
{
|
||||
public:
|
||||
static std::shared_ptr<Camera> create(PipelineHandler *pipe,
|
||||
const std::string &name,
|
||||
const std::string &id,
|
||||
const std::set<Stream *> &streams);
|
||||
|
||||
Camera(const Camera &) = delete;
|
||||
Camera &operator=(const Camera &) = delete;
|
||||
|
||||
const std::string &name() const;
|
||||
const std::string &id() const;
|
||||
|
||||
Signal<Request *, FrameBuffer *> bufferCompleted;
|
||||
Signal<Request *> requestCompleted;
|
||||
@@ -100,7 +100,7 @@ public:
|
||||
int stop();
|
||||
|
||||
private:
|
||||
Camera(PipelineHandler *pipe, const std::string &name,
|
||||
Camera(PipelineHandler *pipe, const std::string &id,
|
||||
const std::set<Stream *> &streams);
|
||||
~Camera();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user