From patchwork Thu May 19 10:33:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 15987 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 9A341C326E for ; Thu, 19 May 2022 10:34:14 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 14BD765672; Thu, 19 May 2022 12:34:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1652956454; bh=A/SKTe1eyVCsX8wYDwzaM1C1mySX39BKFloflu1ogp0=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=Z4uPmDtT5fTWqaKU3b8PUxoZYF62BNsUjsapmsb+i/hSlmlKoHnQ8cQi9bmFWl40O l+QZ840QowgchOE8BjN13SC5aeW/eGkRPO8rBV5iK2xtiynTNh37GO0+wRIoU1/5H4 KTTI4OSCIENPaQgnBdcFA51LAJ/gE/QTshLn+wOGeyyjBc1Qh0CTisZwOC07vOIttK WVUIX8gTAZvT3sZBCpTAC3mg2cIZ/g7YaX6m9Gma1xed1q2pV2BMbIXfxNfBVbtotQ U4cBudRtGmU/RI4ZOKKmdiQuAoMh9rYSsDIaZWwWDh53OnuP2OlXd3gy7kGNhkriCo H8PVyk1xco61g== 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 12B4E60420 for ; Thu, 19 May 2022 12:34:09 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="No8c5qhm"; dkim-atps=neutral Received: from deskari.lan (91-156-85-209.elisa-laajakaista.fi [91.156.85.209]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 7299C119F; Thu, 19 May 2022 12:34:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1652956448; bh=A/SKTe1eyVCsX8wYDwzaM1C1mySX39BKFloflu1ogp0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=No8c5qhmjzujd2sPCYXHrfm0KruPA9F6o9oarhY4VJMvekr47ckuRbrd4qZbwkY1W A7JoVWeI8jO/fW6KbJB1GjKKbWfoYZNcbS43r4+YRoITZfnsCQPHY7/4bQAs5uHCbe jwFxk5Yg+GItXifP3GxvE7JISkvn9LL8XVhDCSec= To: libcamera-devel@lists.libcamera.org, David Plowman , Kieran Bingham , Laurent Pinchart , Jacopo Mondi Date: Thu, 19 May 2022 13:33:47 +0300 Message-Id: <20220519103347.33295-6-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220519103347.33295-1-tomi.valkeinen@ideasonboard.com> References: <20220519103347.33295-1-tomi.valkeinen@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 5/5] py: Fix None value in ControlType enum 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: , X-Patchwork-Original-From: Tomi Valkeinen via libcamera-devel From: Tomi Valkeinen Reply-To: Tomi Valkeinen Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" "None" is not a valid name for an enum value, so change it to "Null". Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- src/py/libcamera/py_enums.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/py/libcamera/py_enums.cpp b/src/py/libcamera/py_enums.cpp index e55318f1..96d4beef 100644 --- a/src/py/libcamera/py_enums.cpp +++ b/src/py/libcamera/py_enums.cpp @@ -22,7 +22,7 @@ void init_py_enums(py::module &m) .value("Viewfinder", StreamRole::Viewfinder); py::enum_(m, "ControlType") - .value("None", ControlType::ControlTypeNone) + .value("Null", ControlType::ControlTypeNone) .value("Bool", ControlType::ControlTypeBool) .value("Byte", ControlType::ControlTypeByte) .value("Integer32", ControlType::ControlTypeInteger32)