From patchwork Wed Mar 26 08:00:31 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 23029 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 AD5D5C323E for ; Wed, 26 Mar 2025 08:00:48 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 5510B68959; Wed, 26 Mar 2025 09:00:48 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="XeyGQwBJ"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 4A64568951 for ; Wed, 26 Mar 2025 09:00:46 +0100 (CET) Received: from neptunite.flets-east.jp (unknown [IPv6:2404:7a81:160:2100:7402:917d:ea0c:6d4c]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 3654F3A4; Wed, 26 Mar 2025 08:58:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1742975938; bh=9f8CxV7HK71qH7/DEgQ17GHKGX+TekOXbGOs5iwFBuE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XeyGQwBJWW3zXx1AfA45qJ/f5f9prPuDx5EPpHaF74ey8dQhUkgAGlwLOEWWPUoFy yTp2G9nizFue5RglXrY7u22/Lx2QbKFY8Na9dDV/kEUmrqPZ4GTxN/LjQD6a1irqyO KwyyVV2Y42iyimGAFXy2I7jhyGir1z66sa1itmWU= From: Paul Elder To: libcamera-devel@lists.libcamera.org Cc: Kieran Bingham , Paul Elder Subject: [PATCH v2 1/3] ipa: libipa: Allow retrieving the name of a CameraSensorHelperFactory Date: Wed, 26 Mar 2025 17:00:31 +0900 Message-ID: <20250326080034.1733385-2-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250326080034.1733385-1-paul.elder@ideasonboard.com> References: <20250326080034.1733385-1-paul.elder@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" From: Kieran Bingham Support the test suite iterating the factories by exposing a const retriever of the factory name. Signed-off-by: Kieran Bingham Signed-off-by: Paul Elder --- Changes in v2: - recover from bitrot --- src/ipa/libipa/camera_sensor_helper.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ipa/libipa/camera_sensor_helper.h b/src/ipa/libipa/camera_sensor_helper.h index a9300a64f1e7..92f527108137 100644 --- a/src/ipa/libipa/camera_sensor_helper.h +++ b/src/ipa/libipa/camera_sensor_helper.h @@ -60,6 +60,8 @@ public: static std::vector &factories(); + const std::string &name() const { return name_; }; + private: LIBCAMERA_DISABLE_COPY_AND_MOVE(CameraSensorHelperFactoryBase)