Patch Detail
Show a patch.
GET /api/1.1/patches/16136/?format=api
{ "id": 16136, "url": "https://patchwork.libcamera.org/api/1.1/patches/16136/?format=api", "web_url": "https://patchwork.libcamera.org/patch/16136/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/1.1/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20220603093224.28579-1-jacopo@jmondi.org>", "date": "2022-06-03T09:32:24", "name": "[libcamera-devel] libcamera: request: Add operator<<()", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "e11448d8759a3ccacdd296b362d41087185a64e5", "submitter": { "id": 3, "url": "https://patchwork.libcamera.org/api/1.1/people/3/?format=api", "name": "Jacopo Mondi", "email": "jacopo@jmondi.org" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/16136/mbox/", "series": [ { "id": 3156, "url": "https://patchwork.libcamera.org/api/1.1/series/3156/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3156", "date": "2022-06-03T09:32:24", "name": "[libcamera-devel] libcamera: request: Add operator<<()", "version": 1, "mbox": "https://patchwork.libcamera.org/series/3156/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/16136/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/16136/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 9751ABD161\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 3 Jun 2022 09:32:39 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 22A6665636;\n\tFri, 3 Jun 2022 11:32:33 +0200 (CEST)", "from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net\n\t[217.70.183.193])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id AE928633A6\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 3 Jun 2022 11:32:31 +0200 (CEST)", "(Authenticated sender: jacopo@jmondi.org)\n\tby mail.gandi.net (Postfix) with ESMTPSA id C140124000E;\n\tFri, 3 Jun 2022 09:32:30 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1654248753;\n\tbh=PCV5TAWAfQurnwu5FEQr/0YAFQAQWdTrxgPzPVu5flU=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:From;\n\tb=fwUJ+Kqih6h6VfzHzOSpspH0bw8w/0/kXqtOuVoD15cwJrVTGKAaDtdX9Ds+RoI2x\n\t+SxpaQvIf/kC9zgCUYZYG4xKR9pa8dIYaHmuRJ63rl51KyigtsNzhXeltXg2PERh7K\n\tp8CahiXeWYa+a0b/u0jwxC2Zxz0UNQ1ixD3ppyg3a27z1GXj7WzQsBs5wEOmT4o8zt\n\tR0pHWRqYjUNuQ7VQb8uQ6hxxEm7aOXvPa+g4RdyGOppV+TWwcekXzB8zp3WF408Aoo\n\tgRE8XSOVX8gGi0SOtjDii+cwk6JzztWhcOlBtZdbEizUOcX4qwawD3pbUvo4HVWq8j\n\tYfaEcoI/83rcw==", "To": "libcamera-devel@lists.libcamera.org", "Date": "Fri, 3 Jun 2022 11:32:24 +0200", "Message-Id": "<20220603093224.28579-1-jacopo@jmondi.org>", "X-Mailer": "git-send-email 2.35.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH] libcamera: request: Add operator<<()", "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": "Jacopo Mondi via libcamera-devel <libcamera-devel@lists.libcamera.org>", "Reply-To": "Jacopo Mondi <jacopo@jmondi.org>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "With the recent addition of operator<<() to most libcamera core classes\nto replace usage of the toString() function, the Request class was left\nbehind.\n\nAdd operator<<() for the Request class.\n\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n include/libcamera/request.h | 3 +++\n src/libcamera/request.cpp | 12 ++++++++++++\n 2 files changed, 15 insertions(+)", "diff": "diff --git a/include/libcamera/request.h b/include/libcamera/request.h\nindex 1eb537e9b09b..dffde1536cad 100644\n--- a/include/libcamera/request.h\n+++ b/include/libcamera/request.h\n@@ -9,6 +9,7 @@\n \n #include <map>\n #include <memory>\n+#include <ostream>\n #include <stdint.h>\n #include <string>\n #include <unordered_set>\n@@ -75,4 +76,6 @@ private:\n \tStatus status_;\n };\n \n+std::ostream &operator<<(std::ostream &out, const Request &r);\n+\n } /* namespace libcamera */\ndiff --git a/src/libcamera/request.cpp b/src/libcamera/request.cpp\nindex 5704972d86af..f630f0818cbd 100644\n--- a/src/libcamera/request.cpp\n+++ b/src/libcamera/request.cpp\n@@ -594,4 +594,16 @@ std::string Request::toString() const\n \treturn ss.str();\n }\n \n+/**\n+ * \\brief Insert a text representation of a Request into an output stream\n+ * \\param[in] out The output stream\n+ * \\param[in] r The Request\n+ * \\return The output stream \\a out\n+ */\n+std::ostream &operator<<(std::ostream &out, const Request &r)\n+{\n+\tout << r.toString();\n+\treturn out;\n+}\n+\n } /* namespace libcamera */\n", "prefixes": [ "libcamera-devel" ] }