{"id":15987,"url":"https://patchwork.libcamera.org/api/patches/15987/?format=json","web_url":"https://patchwork.libcamera.org/patch/15987/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20220519103347.33295-6-tomi.valkeinen@ideasonboard.com>","date":"2022-05-19T10:33:47","name":"[libcamera-devel,5/5] py: Fix None value in ControlType enum","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"9441ebe2a9791898cb2095d0596d6d2f9813a14c","submitter":{"id":109,"url":"https://patchwork.libcamera.org/api/people/109/?format=json","name":"Tomi Valkeinen","email":"tomi.valkeinen@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/15987/mbox/","series":[{"id":3127,"url":"https://patchwork.libcamera.org/api/series/3127/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3127","date":"2022-05-19T10:33:42","name":"More misc Python patches","version":1,"mbox":"https://patchwork.libcamera.org/series/3127/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/15987/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/15987/checks/","tags":{},"headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 9A341C326E\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 19 May 2022 10:34:14 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 14BD765672;\n\tThu, 19 May 2022 12:34:14 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 12B4E60420\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 19 May 2022 12:34:09 +0200 (CEST)","from deskari.lan (91-156-85-209.elisa-laajakaista.fi\n\t[91.156.85.209])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 7299C119F;\n\tThu, 19 May 2022 12:34:08 +0200 (CEST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1652956454;\n\tbh=A/SKTe1eyVCsX8wYDwzaM1C1mySX39BKFloflu1ogp0=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=Z4uPmDtT5fTWqaKU3b8PUxoZYF62BNsUjsapmsb+i/hSlmlKoHnQ8cQi9bmFWl40O\n\tl+QZ840QowgchOE8BjN13SC5aeW/eGkRPO8rBV5iK2xtiynTNh37GO0+wRIoU1/5H4\n\tKTTI4OSCIENPaQgnBdcFA51LAJ/gE/QTshLn+wOGeyyjBc1Qh0CTisZwOC07vOIttK\n\tWVUIX8gTAZvT3sZBCpTAC3mg2cIZ/g7YaX6m9Gma1xed1q2pV2BMbIXfxNfBVbtotQ\n\tU4cBudRtGmU/RI4ZOKKmdiQuAoMh9rYSsDIaZWwWDh53OnuP2OlXd3gy7kGNhkriCo\n\tH8PVyk1xco61g==","v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1652956448;\n\tbh=A/SKTe1eyVCsX8wYDwzaM1C1mySX39BKFloflu1ogp0=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=No8c5qhmjzujd2sPCYXHrfm0KruPA9F6o9oarhY4VJMvekr47ckuRbrd4qZbwkY1W\n\tA7JoVWeI8jO/fW6KbJB1GjKKbWfoYZNcbS43r4+YRoITZfnsCQPHY7/4bQAs5uHCbe\n\tjwFxk5Yg+GItXifP3GxvE7JISkvn9LL8XVhDCSec="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"No8c5qhm\"; dkim-atps=neutral","To":"libcamera-devel@lists.libcamera.org,\n\tDavid Plowman <david.plowman@raspberrypi.com>,\n\tKieran Bingham <kieran.bingham@ideasonboard.com>,\n\tLaurent Pinchart <laurent.pinchart@ideasonboard.com>,\n\tJacopo Mondi <jacopo@jmondi.org>","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","Content-Transfer-Encoding":"8bit","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":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","From":"Tomi Valkeinen via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>","Reply-To":"Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"\"None\" is not a valid name for an enum value, so change it to \"Null\".\n\nSigned-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>\n---\n src/py/libcamera/py_enums.cpp | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)","diff":"diff --git a/src/py/libcamera/py_enums.cpp b/src/py/libcamera/py_enums.cpp\nindex e55318f1..96d4beef 100644\n--- a/src/py/libcamera/py_enums.cpp\n+++ b/src/py/libcamera/py_enums.cpp\n@@ -22,7 +22,7 @@ void init_py_enums(py::module &m)\n \t\t.value(\"Viewfinder\", StreamRole::Viewfinder);\n \n \tpy::enum_<ControlType>(m, \"ControlType\")\n-\t\t.value(\"None\", ControlType::ControlTypeNone)\n+\t\t.value(\"Null\", ControlType::ControlTypeNone)\n \t\t.value(\"Bool\", ControlType::ControlTypeBool)\n \t\t.value(\"Byte\", ControlType::ControlTypeByte)\n \t\t.value(\"Integer32\", ControlType::ControlTypeInteger32)\n","prefixes":["libcamera-devel","5/5"]}