Patch Detail
Show a patch.
GET /api/1.1/patches/1819/?format=api
{ "id": 1819, "url": "https://patchwork.libcamera.org/api/1.1/patches/1819/?format=api", "web_url": "https://patchwork.libcamera.org/patch/1819/", "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": "<20190817152104.10834-2-laurent.pinchart@ideasonboard.com>", "date": "2019-08-17T15:20:47", "name": "[libcamera-devel,v2,01/18] libcamera: object: Make message() method protected", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "2ce22b9bbca2f4ce7e5810d56664b58c3856d112", "submitter": { "id": 2, "url": "https://patchwork.libcamera.org/api/1.1/people/2/?format=api", "name": "Laurent Pinchart", "email": "laurent.pinchart@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/1819/mbox/", "series": [ { "id": 463, "url": "https://patchwork.libcamera.org/api/1.1/series/463/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=463", "date": "2019-08-17T15:20:46", "name": "Object & Thread enhancements", "version": 2, "mbox": "https://patchwork.libcamera.org/series/463/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/1819/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/1819/checks/", "tags": {}, "headers": { "Return-Path": "<laurent.pinchart@ideasonboard.com>", "Received": [ "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 5DDD6600F9\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 17 Aug 2019 17:21:13 +0200 (CEST)", "from pendragon.bb.dnainternet.fi\n\t(dfj612yhrgyx302h3jwwy-3.rev.dnainternet.fi\n\t[IPv6:2001:14ba:21f5:5b00:ce28:277f:58d7:3ca4])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id EF9EF98C\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 17 Aug 2019 17:21:12 +0200 (CEST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1566055273;\n\tbh=+cUeGq6v9LDYO54X80qEGfBMuubBG+fSZnXJC3Ux1jQ=;\n\th=From:To:Subject:Date:In-Reply-To:References:From;\n\tb=EuzyjSxmu600CViBGMgP+9tvTjRAIxYWUEeAUb5VsOnAnEvQ1rY/l8o/Qpvrab6bq\n\tFZoHl6k8gx5yx1naKvb/pv5hFcrZ+24FVUIch9sJIpPxNGgg+7TldJOrsN+TP7oaF+\n\tH+FZNd1RPdSyxWcjx2a4EqilnXTfJf0g/bOvrsJs=", "From": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Sat, 17 Aug 2019 18:20:47 +0300", "Message-Id": "<20190817152104.10834-2-laurent.pinchart@ideasonboard.com>", "X-Mailer": "git-send-email 2.21.0", "In-Reply-To": "<20190817152104.10834-1-laurent.pinchart@ideasonboard.com>", "References": "<20190817152104.10834-1-laurent.pinchart@ideasonboard.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH v2 01/18] libcamera: object: Make\n\tmessage() method protected", "X-BeenThere": "libcamera-devel@lists.libcamera.org", "X-Mailman-Version": "2.1.23", "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>", "X-List-Received-Date": "Sat, 17 Aug 2019 15:21:13 -0000" }, "content": "The message() method shouldn't be called externally (except by a few\nfriend classes), make it protected.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\nReviewed-by: Jacopo Mondi <jacopo@jmondi.org>\nReviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>\n---\n include/libcamera/object.h | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)", "diff": "diff --git a/include/libcamera/object.h b/include/libcamera/object.h\nindex 5c251a822d9a..3d08d69a9044 100644\n--- a/include/libcamera/object.h\n+++ b/include/libcamera/object.h\n@@ -26,11 +26,13 @@ public:\n \tvirtual ~Object();\n \n \tvoid postMessage(std::unique_ptr<Message> msg);\n-\tvirtual void message(Message *msg);\n \n \tThread *thread() const { return thread_; }\n \tvoid moveToThread(Thread *thread);\n \n+protected:\n+\tvirtual void message(Message *msg);\n+\n private:\n \ttemplate<typename... Args>\n \tfriend class Signal;\n", "prefixes": [ "libcamera-devel", "v2", "01/18" ] }