From patchwork Mon Dec 16 15:40:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Klug X-Patchwork-Id: 22362 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 64F52C32F6 for ; Mon, 16 Dec 2024 15:42:35 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id DCFC067F93; Mon, 16 Dec 2024 16:42:34 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="roIgIrYz"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id B0B1B67F93 for ; Mon, 16 Dec 2024 16:42:30 +0100 (CET) Received: from ideasonboard.com (unknown [IPv6:2a00:6020:448c:6c00:bfdf:3a3c:e45:66e3]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 1E59D675; Mon, 16 Dec 2024 16:41:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1734363714; bh=Y9XUc6pwUUcTXOgIfSoHiwBcpxDYPAnAd21x0kQKGzA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=roIgIrYzZ5VxUL43ofKbjWYoJN8OIa1VLmu2cRoP8dkAcj9yRHSVyQeciaFLttkwq RsSkxKSY3w0GjTu3FO58FnU9iZn+RLr/HUPGpFPlOzOkKEjlYlTZitbEnJVKPj95SY 9IPJedzWbDyLiZHSodo9atM9MxsOcNIFxfwei6zY= From: Stefan Klug To: libcamera-devel@lists.libcamera.org Cc: Stefan Klug , Jacopo Mondi , Paul Elder Subject: [PATCH v4 16/20] libcamera: camera: Add a const version of the pipe() function Date: Mon, 16 Dec 2024 16:40:56 +0100 Message-ID: <20241216154124.203650-17-stefan.klug@ideasonboard.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241216154124.203650-1-stefan.klug@ideasonboard.com> References: <20241216154124.203650-1-stefan.klug@ideasonboard.com> MIME-Version: 1.0 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" Allow access to the pipeline handler on a const instance of Camera::Private. Signed-off-by: Stefan Klug Reviewed-by: Jacopo Mondi Reviewed-by: Paul Elder --- Changes in v4: - Collected tags - Updated title Changes in v3: - Added this patch --- include/libcamera/internal/camera.h | 1 + src/libcamera/camera.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/include/libcamera/internal/camera.h b/include/libcamera/internal/camera.h index 0add0428bb5d..2bb00bbcb644 100644 --- a/include/libcamera/internal/camera.h +++ b/include/libcamera/internal/camera.h @@ -32,6 +32,7 @@ public: ~Private(); PipelineHandler *pipe() { return pipe_.get(); } + const PipelineHandler *pipe() const { return pipe_.get(); } std::list queuedRequests_; ControlInfoMap controlInfo_; diff --git a/src/libcamera/camera.cpp b/src/libcamera/camera.cpp index 4c865a46af53..69a7ee5353f1 100644 --- a/src/libcamera/camera.cpp +++ b/src/libcamera/camera.cpp @@ -603,6 +603,11 @@ Camera::Private::~Private() * \return The pipeline handler that created this camera */ +/** + * \fn Camera::Private::pipe() const + * \copydoc Camera::Private::pipe() + */ + /** * \fn Camera::Private::validator() * \brief Retrieve the control validator related to this camera