From patchwork Fri Aug 14 10:45:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 9324 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 34935BD87D for ; Fri, 14 Aug 2020 10:45:20 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id BE760613EC; Fri, 14 Aug 2020 12:45:19 +0200 (CEST) Received: from vsp-unauthed02.binero.net (vsp-unauthed02.binero.net [195.74.38.227]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 4DC0A60918 for ; Fri, 14 Aug 2020 12:45:19 +0200 (CEST) X-Halon-ID: 3a39f2cc-de1b-11ea-a39b-005056917f90 Authorized-sender: niklas.soderlund@fsdn.se Received: from bismarck.berto.se (p54ac52a8.dip0.t-ipconnect.de [84.172.82.168]) by bin-vsp-out-02.atm.binero.net (Halon) with ESMTPA id 3a39f2cc-de1b-11ea-a39b-005056917f90; Fri, 14 Aug 2020 12:45:15 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Fri, 14 Aug 2020 12:45:06 +0200 Message-Id: <20200814104509.189023-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/3] libcamera: Mark controls and property accessors as const operations X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" 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: Add const version of cameraData() 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 | 5 +++-- src/libcamera/camera.cpp | 4 ++-- src/libcamera/pipeline_handler.cpp | 21 +++++++++++++++---- 4 files changed, 24 insertions(+), 10 deletions(-)