From patchwork Thu Aug 13 09:53:42 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: 9304 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 8707CBD87D for ; Thu, 13 Aug 2020 09:53:54 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 071D06138F; Thu, 13 Aug 2020 11:53:54 +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 D5C83603D9 for ; Thu, 13 Aug 2020 11:53:52 +0200 (CEST) X-Halon-ID: e08bd636-dd4a-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 e08bd636-dd4a-11ea-92dc-005056917a89; Thu, 13 Aug 2020 11:53:48 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Thu, 13 Aug 2020 11:53:42 +0200 Message-Id: <20200813095344.3495212-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 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(-)