From patchwork Fri May 27 14:44:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 16093 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 E262EC326F for ; Fri, 27 May 2022 14:45:35 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 603A865642; Fri, 27 May 2022 16:45:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1653662735; bh=nQjPqigPkN6HPUbxyWkm7VNP9KvL1x/u73XNvTzHcus=; 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=nMZytV28J+bun7m2IrcfXz1LKnrKBw123eguQ9ddVspV9Jk/9InKsSt6J+5bXs8CD T/Yyg7nrXsv492WNyY8GvkS/qoJNWzADoDDW2q1T01JIUAjzcwQurwd1mOhOV456yZ tpBvIhJr35BZiaR21f+Oo93zFC7WNjVtSjFs9MsSLFjSF6jd77mhlGx+kUxeXGfRzg Ata4yhjMyUc0SWz5eFP8CGKGJE0jCpz7rcIaX5ynwJ7v5cevpAxlFERMf6Qiu46QMb 2Y6/nW2DYTr/ev3pgs1rP0cJIxZ4JIsDPY7ykCm5PO5RUhk+eG0GJq/8szeQgVuxSb okTFWZxoU4Ktw== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 597F165640 for ; Fri, 27 May 2022 16:45:15 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="wAJ36Ttv"; 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 BF147B1D; Fri, 27 May 2022 16:45:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1653662715; bh=nQjPqigPkN6HPUbxyWkm7VNP9KvL1x/u73XNvTzHcus=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wAJ36TtvYzP5JUp289Z7npPItRxjS+53qMPEGwVQFEGqXyBO/vWgINBMEs6NrT+ee DbdNIEREyyynHsTI50HTx/o/GuCE3qALWSztWqjA+0xU3V8aEnZ55M+tqCy7r5/lwZ +4YXKVWt/Id8/fQctHgpVWq7wtdspEzfKyfzs9qM= To: libcamera-devel@lists.libcamera.org, David Plowman , Kieran Bingham , Laurent Pinchart , Jacopo Mondi Date: Fri, 27 May 2022 17:44:38 +0300 Message-Id: <20220527144447.94891-22-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220527144447.94891-1-tomi.valkeinen@ideasonboard.com> References: <20220527144447.94891-1-tomi.valkeinen@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 21/30] 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)