From patchwork Mon May 30 14:27:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 16112 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 02D8FC3270 for ; Mon, 30 May 2022 14:27:48 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 4AA066563D; Mon, 30 May 2022 16:27:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1653920868; bh=61t+dhJe27bzpHCJUf8idA6AgToLpGZf2TvyO61VH1A=; 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=IkSON5ETut2PvZm0gRiU87rhvIBYpwrOQ6DAE1tID5Bwz7tDEzBfJaVLc5JWRO0cA s6a4aBV5oN1k5Co3/Ug9YHWPOyzid8QK1mpIv1JgB8DukH464W69gOunQw/cIC5TeW D6O4NZm7ILBDwOu59ayAX3o70XtixBYuWl5lFPQAJtf6n8IeQW5rnJHZN15N1s4umB inHo4PJtnnU9A2tQyfX5nTvLwvOezBDZPpODqM3o5ekjfGPAfntGD/bm42v5/0YVrE EMVNtnkUzO/2h3cyCbveIFkp1wIADCrTnkMN9V5DPAW0xcWsEExPTZqVamFZrVHHuM 8DxlIItS8U25g== 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 C59E565641 for ; Mon, 30 May 2022 16:27:41 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="K9hgSIdu"; 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 3C2D4101E; Mon, 30 May 2022 16:27:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1653920861; bh=61t+dhJe27bzpHCJUf8idA6AgToLpGZf2TvyO61VH1A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K9hgSIduAJ7G0kdjzHV1+wfBeNSoWb0F3LWbMVsQGNY7kcyaNcCocmh/12Pmyq4zf Wad/EQUTY4HLdwUQV0997b8/Jbm6jj0ERZspYaH20++1NXx6f15BrQFFFqwwprdHfD 0TCqjaOUFEGEHLS1R3Qbis4Wo58Ae0nsnNcyUeLY= To: libcamera-devel@lists.libcamera.org, David Plowman , Kieran Bingham , Laurent Pinchart , Jacopo Mondi Date: Mon, 30 May 2022 17:27:11 +0300 Message-Id: <20220530142722.57618-6-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220530142722.57618-1-tomi.valkeinen@ideasonboard.com> References: <20220530142722.57618-1-tomi.valkeinen@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v4 05/16] py: Add Request.__str__() 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" Add Request.__str__() which maps directly to Request::toString(). Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- src/py/libcamera/py_main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/py/libcamera/py_main.cpp b/src/py/libcamera/py_main.cpp index 3220a9e6..9e827845 100644 --- a/src/py/libcamera/py_main.cpp +++ b/src/py/libcamera/py_main.cpp @@ -496,7 +496,8 @@ PYBIND11_MODULE(_libcamera, m) * \todo As we add a keep_alive to the fb in addBuffers(), we * can only allow reuse with ReuseBuffers. */ - .def("reuse", [](Request &self) { self.reuse(Request::ReuseFlag::ReuseBuffers); }); + .def("reuse", [](Request &self) { self.reuse(Request::ReuseFlag::ReuseBuffers); }) + .def("__str__", &Request::toString); pyRequestStatus .value("Pending", Request::RequestPending)