summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-08-06 14:37:56 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-08-16 13:50:03 +0200
commit54ca46968a18ab938fc61f9424f421a004f50405 (patch)
tree547be52362214bb9611576a59f5dbacd6a5f58f0 /src
parent0b9d8eb265a16a0dda650700759066b714f8fd0c (diff)
libcamera: camera: Mark controls() and properties() as const operations
Reading the controls and properties does not modify the camera's state and can be marked as const operations. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/camera.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcamera/camera.cpp b/src/libcamera/camera.cpp
index afdd4775..4a9c19c3 100644
--- a/src/libcamera/camera.cpp
+++ b/src/libcamera/camera.cpp
@@ -658,7 +658,7 @@ int Camera::release()
*
* \return A ControlInfoMap listing the controls supported by the camera
*/
-const ControlInfoMap &Camera::controls()
+const ControlInfoMap &Camera::controls() const
{
return p_->pipe_->controls(this);
}
@@ -671,7 +671,7 @@ const ControlInfoMap &Camera::controls()
*
* \return A ControlList of properties supported by the camera
*/
-const ControlList &Camera::properties()
+const ControlList &Camera::properties() const
{
return p_->pipe_->properties(this);
}