[libcamera-devel,0/3] libcamera: Mark controls and property accessors as const operations
mbox series

Message ID 20200806125330.2983325-1-niklas.soderlund@ragnatech.se
Headers show
Series
  • libcamera: Mark controls and property accessors as const operations
Related show

Message

Niklas Söderlund Aug. 6, 2020, 12:53 p.m. UTC
Hi,

This small series marks aims to make the Camera::controls() and 
Camera::properties() methods const operations in order to allow them to 
be called on a const Camera *ptr.

It also aims to make our public API a bit stricter and clearer which is 
always nice.

Niklas Söderlund (3):
  libcamera: pipeline_handler: Make cameraData() a const operation
  libcamera: pipeline_handler: Mark controls() and properties() as const
    operations
  libcamera: camera: Mark controls() and properties() as const
    operations

 include/libcamera/camera.h                    | 4 ++--
 include/libcamera/internal/pipeline_handler.h | 6 +++---
 src/libcamera/camera.cpp                      | 4 ++--
 src/libcamera/pipeline_handler.cpp            | 8 ++++----
 4 files changed, 11 insertions(+), 11 deletions(-)