From patchwork Mon Aug 10 23:45:26 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: 9286 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 CD557BD87D for ; Mon, 10 Aug 2020 23:45:37 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 2170461094; Tue, 11 Aug 2020 01:45:37 +0200 (CEST) Received: from bin-mail-out-05.binero.net (bin-mail-out-05.binero.net [195.74.38.228]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D279460D5B for ; Tue, 11 Aug 2020 01:45:34 +0200 (CEST) X-Halon-ID: 934619e8-db63-11ea-92dc-005056917a89 Authorized-sender: niklas.soderlund@fsdn.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 934619e8-db63-11ea-92dc-005056917a89; Tue, 11 Aug 2020 01:45:33 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Tue, 11 Aug 2020 01:45:26 +0200 Message-Id: <20200810234528.1678143-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/2] libcamera: request: Make Stream pointer const 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 series aims to make the Request object more strict by making the Stream pointers it interacts with as const. This is good as it makes it more apparent to pipeline handlers that the pointer should only be regarded as a key when it comes from the user. Niklas Söderlund (2): libcamera: request: Declare a using directive for map of buffers libcamera: request: Make Stream pointer const include/libcamera/request.h | 10 ++++++---- src/android/camera_device.cpp | 2 +- src/cam/capture.cpp | 6 +++--- src/cam/capture.h | 2 +- src/libcamera/camera.cpp | 4 ++-- src/libcamera/pipeline/ipu3/ipu3.cpp | 2 +- src/libcamera/request.cpp | 11 ++++++++--- src/qcam/main_window.h | 6 +++--- test/camera/buffer_import.cpp | 4 ++-- test/camera/capture.cpp | 4 ++-- 10 files changed, 29 insertions(+), 22 deletions(-)