summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-02-12 04:37:16 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-02-21 03:32:01 +0200
commit79991a99033f068fa463dccdf2abc423ae19f4e5 (patch)
tree59a80aaf13d90f743d48914df089e70fa1e505d2 /include
parentf73c505f7166c5287e34897a699445360ab7d99e (diff)
libcamera: camera: Constify controls argument to start()
The ControlList passed to the Camera::start() function isn't modified. Make it const. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/camera.h2
-rw-r--r--include/libcamera/internal/pipeline_handler.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/libcamera/camera.h b/include/libcamera/camera.h
index bd81fb54..326b14d0 100644
--- a/include/libcamera/camera.h
+++ b/include/libcamera/camera.h
@@ -100,7 +100,7 @@ public:
std::unique_ptr<Request> createRequest(uint64_t cookie = 0);
int queueRequest(Request *request);
- int start(ControlList *controls = nullptr);
+ int start(const ControlList *controls = nullptr);
int stop();
private:
diff --git a/include/libcamera/internal/pipeline_handler.h b/include/libcamera/internal/pipeline_handler.h
index d455d3c9..6aca0b46 100644
--- a/include/libcamera/internal/pipeline_handler.h
+++ b/include/libcamera/internal/pipeline_handler.h
@@ -76,7 +76,7 @@ public:
virtual int exportFrameBuffers(Camera *camera, Stream *stream,
std::vector<std::unique_ptr<FrameBuffer>> *buffers) = 0;
- virtual int start(Camera *camera, ControlList *controls) = 0;
+ virtual int start(Camera *camera, const ControlList *controls) = 0;
virtual void stop(Camera *camera) = 0;
int queueRequest(Request *request);