Patch Detail
Show a patch.
GET /api/1.1/patches/1895/?format=api
{ "id": 1895, "url": "https://patchwork.libcamera.org/api/1.1/patches/1895/?format=api", "web_url": "https://patchwork.libcamera.org/patch/1895/", "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": "<20190829232653.13214-9-niklas.soderlund@ragnatech.se>", "date": "2019-08-29T23:26:47", "name": "[libcamera-devel,v2,08/14] libcamera: request: Add RequestData", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "fe863e8502105ebc18663f0a48fc77a5ffae0dc2", "submitter": { "id": 5, "url": "https://patchwork.libcamera.org/api/1.1/people/5/?format=api", "name": "Niklas Söderlund", "email": "niklas.soderlund@ragnatech.se" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/1895/mbox/", "series": [ { "id": 475, "url": "https://patchwork.libcamera.org/api/1.1/series/475/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=475", "date": "2019-08-29T23:26:40", "name": "libcamera: ipa: Add basic IPA support", "version": 2, "mbox": "https://patchwork.libcamera.org/series/475/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/1895/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/1895/checks/", "tags": {}, "headers": { "Return-Path": "<niklas.soderlund@ragnatech.se>", "Received": [ "from bin-mail-out-06.binero.net (bin-mail-out-06.binero.net\n\t[195.74.38.229])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 53D176192E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 30 Aug 2019 01:27:34 +0200 (CEST)", "from bismarck.berto.se (unknown [79.202.45.17])\n\tby bin-vsp-out-03.atm.binero.net (Halon) with ESMTPA\n\tid 90ee81c1-cab4-11e9-837a-0050569116f7;\n\tFri, 30 Aug 2019 01:27:28 +0200 (CEST)" ], "X-Halon-ID": "90ee81c1-cab4-11e9-837a-0050569116f7", "Authorized-sender": "niklas@soderlund.pp.se", "From": "=?utf-8?q?Niklas_S=C3=B6derlund?= <niklas.soderlund@ragnatech.se>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Fri, 30 Aug 2019 01:26:47 +0200", "Message-Id": "<20190829232653.13214-9-niklas.soderlund@ragnatech.se>", "X-Mailer": "git-send-email 2.22.1", "In-Reply-To": "<20190829232653.13214-1-niklas.soderlund@ragnatech.se>", "References": "<20190829232653.13214-1-niklas.soderlund@ragnatech.se>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH v2 08/14] libcamera: request: Add\n\tRequestData", "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": "Thu, 29 Aug 2019 23:27:35 -0000" }, "content": "Add a RequestData pointer to the Request class, this is intended to be\nused by pipeline handlers while handling the request and is invalid\noutside the pipeline handler context.\n\nSigned-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>\n---\n include/libcamera/request.h | 5 +++++\n src/libcamera/request.cpp | 10 +++++++++-\n 2 files changed, 14 insertions(+), 1 deletion(-)", "diff": "diff --git a/include/libcamera/request.h b/include/libcamera/request.h\nindex 9edf1cedc054014f..570924c5ef5e2425 100644\n--- a/include/libcamera/request.h\n+++ b/include/libcamera/request.h\n@@ -21,6 +21,9 @@ class Buffer;\n class Camera;\n class Stream;\n \n+class RequestData\n+{\n+};\n \n class Request\n {\n@@ -46,6 +49,8 @@ public:\n \n \tbool hasPendingBuffers() const { return !pending_.empty(); }\n \n+\tRequestData *data;\n+\n private:\n \tfriend class Camera;\n \tfriend class PipelineHandler;\ndiff --git a/src/libcamera/request.cpp b/src/libcamera/request.cpp\nindex ee2158fc7a9cf0b9..b8b4dfb4b7549163 100644\n--- a/src/libcamera/request.cpp\n+++ b/src/libcamera/request.cpp\n@@ -55,7 +55,7 @@ LOG_DEFINE_CATEGORY(Request)\n *\n */\n Request::Request(Camera *camera, uint64_t cookie)\n-\t: camera_(camera), controls_(camera), cookie_(cookie),\n+\t: data(nullptr), camera_(camera), controls_(camera), cookie_(cookie),\n \t status_(RequestPending), cancelled_(false)\n {\n }\n@@ -178,6 +178,14 @@ Buffer *Request::findBuffer(Stream *stream) const\n * otherwise\n */\n \n+/**\n+ * \\var Request::data\n+ * \\brief Pipeline handler specific data\n+ *\n+ * Pipeline handlers may associate private data with with an request that\n+ * is valid for the requests lifetime inside the pipeline handler.\n+ */\n+\n /**\n * \\brief Validate the request and prepare it for the completion handler\n *\n", "prefixes": [ "libcamera-devel", "v2", "08/14" ] }