Patch Detail
Show a patch.
GET /api/1.1/patches/674/?format=api
{ "id": 674, "url": "https://patchwork.libcamera.org/api/1.1/patches/674/?format=api", "web_url": "https://patchwork.libcamera.org/patch/674/", "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": "<20190228200151.2948-7-jacopo@jmondi.org>", "date": "2019-02-28T20:01:48", "name": "[libcamera-devel,v5,6/9] libcamera: v4l2_device: Expose the device node path", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "ec8a67d812a2ee39b75b99eea2e9914d179afe24", "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/674/mbox/", "series": [ { "id": 198, "url": "https://patchwork.libcamera.org/api/1.1/series/198/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=198", "date": "2019-02-28T20:01:42", "name": "v4l2_(sub)dev: improvements and tests", "version": 4, "mbox": "https://patchwork.libcamera.org/series/198/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/674/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/674/checks/", "tags": {}, "headers": { "Return-Path": "<jacopo@jmondi.org>", "Received": [ "from relay11.mail.gandi.net (relay11.mail.gandi.net\n\t[217.70.178.231])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 939B7610CC\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 28 Feb 2019 21:01:34 +0100 (CET)", "from uno.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101])\n\t(Authenticated sender: jacopo@jmondi.org)\n\tby relay11.mail.gandi.net (Postfix) with ESMTPSA id 245D7100002;\n\tThu, 28 Feb 2019 20:01:33 +0000 (UTC)" ], "From": "Jacopo Mondi <jacopo@jmondi.org>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Thu, 28 Feb 2019 21:01:48 +0100", "Message-Id": "<20190228200151.2948-7-jacopo@jmondi.org>", "X-Mailer": "git-send-email 2.20.1", "In-Reply-To": "<20190228200151.2948-1-jacopo@jmondi.org>", "References": "<20190228200151.2948-1-jacopo@jmondi.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH v5 6/9] libcamera: v4l2_device: Expose the\n\tdevice node path", "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, 28 Feb 2019 20:01:34 -0000" }, "content": "Provide a getter method to access the device node path. For video\ndevices it is usually the most informative description.\n\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n src/libcamera/include/v4l2_device.h | 1 +\n src/libcamera/v4l2_device.cpp | 6 ++++++\n 2 files changed, 7 insertions(+)", "diff": "diff --git a/src/libcamera/include/v4l2_device.h b/src/libcamera/include/v4l2_device.h\nindex 733bd69959f3..e1f79e730ec5 100644\n--- a/src/libcamera/include/v4l2_device.h\n+++ b/src/libcamera/include/v4l2_device.h\n@@ -99,6 +99,7 @@ public:\n \tconst char *driverName() const { return caps_.driver(); }\n \tconst char *deviceName() const { return caps_.card(); }\n \tconst char *busName() const { return caps_.bus_info(); }\n+\tconst std::string deviceNode() const { return deviceNode_; }\n \n \tint getFormat(V4L2DeviceFormat *format);\n \tint setFormat(V4L2DeviceFormat *format);\ndiff --git a/src/libcamera/v4l2_device.cpp b/src/libcamera/v4l2_device.cpp\nindex 9bfa10e8a151..b498d4e0bf92 100644\n--- a/src/libcamera/v4l2_device.cpp\n+++ b/src/libcamera/v4l2_device.cpp\n@@ -364,6 +364,12 @@ void V4L2Device::close()\n * \\return The string containing the device location\n */\n \n+/**\n+ * \\fn const std::string V4L2Device::deviceNode()\n+ * \\brief Retrieve the video device node path\n+ * \\return The video device deviceNode path\n+ */\n+\n std::string V4L2Device::logPrefix() const\n {\n \treturn deviceNode_;\n", "prefixes": [ "libcamera-devel", "v5", "6/9" ] }