From patchwork Thu Aug 6 12:53:27 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: 9246 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 DB0D3BD87A for ; Thu, 6 Aug 2020 12:53:42 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 55DD160836; Thu, 6 Aug 2020 14:53:42 +0200 (CEST) Received: from bin-mail-out-06.binero.net (bin-mail-out-06.binero.net [195.74.38.229]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 67F7560495 for ; Thu, 6 Aug 2020 14:53:41 +0200 (CEST) X-Halon-ID: d7ded94d-d7e3-11ea-92dc-005056917a89 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (p54ac52a8.dip0.t-ipconnect.de [84.172.82.168]) by bin-vsp-out-01.atm.binero.net (Halon) with ESMTPA id d7ded94d-d7e3-11ea-92dc-005056917a89; Thu, 06 Aug 2020 14:53:39 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Thu, 6 Aug 2020 14:53:27 +0200 Message-Id: <20200806125330.2983325-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 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: 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(-)