Patch Detail
Show a patch.
GET /api/patches/26534/?format=api
{ "id": 26534, "url": "https://patchwork.libcamera.org/api/patches/26534/?format=api", "web_url": "https://patchwork.libcamera.org/patch/26534/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/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": "<20260423230059.3180987-13-laurent.pinchart@ideasonboard.com>", "date": "2026-04-23T23:00:34", "name": "[v3,12/37] libcamera: yaml_object: Miscellaneous documentation improvements", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "dbdbb0761048ced45d31a2813fd8eb5c9618e62b", "submitter": { "id": 2, "url": "https://patchwork.libcamera.org/api/people/2/?format=api", "name": "Laurent Pinchart", "email": "laurent.pinchart@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/26534/mbox/", "series": [ { "id": 5883, "url": "https://patchwork.libcamera.org/api/series/5883/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=5883", "date": "2026-04-23T23:00:22", "name": "libcamera: Global configuration file improvements", "version": 3, "mbox": "https://patchwork.libcamera.org/series/5883/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/26534/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/26534/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 F1289BDCB5\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 23 Apr 2026 23:01:24 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 92F2462F98;\n\tFri, 24 Apr 2026 01:01:24 +0200 (CEST)", "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 84CDF62F66\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 24 Apr 2026 01:01:17 +0200 (CEST)", "from killaraus.ideasonboard.com\n\t(2001-14ba-703d-e500--2a1.rev.dnainternet.fi\n\t[IPv6:2001:14ba:703d:e500::2a1])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 0F1999A6\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 24 Apr 2026 00:59:38 +0200 (CEST)" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"HKSzzQ++\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1776985178;\n\tbh=asQ9NgzxwnjXGxAtGy989ZdcvEr9DNUnMK40g2QR++o=;\n\th=From:To:Subject:Date:In-Reply-To:References:From;\n\tb=HKSzzQ++AHFHAOf/+OM3yAyqFCL1ooif7cUdm1eKfWMfWv9uf4uo1Xrw0GS+bdz47\n\t0UYYf90FJrdxmz3RV8Zs3WkglLU/gCbIRZHOi/NmoP+cwPoQtbyhCFHtNU+CA8c8b7\n\tq5Zqig25x8S5o8SIKGd/+VxrUFwS6cmgOIOdBtN4=", "From": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>", "To": "libcamera-devel@lists.libcamera.org", "Subject": "[PATCH v3 12/37] libcamera: yaml_object: Miscellaneous documentation\n\timprovements", "Date": "Fri, 24 Apr 2026 02:00:34 +0300", "Message-ID": "<20260423230059.3180987-13-laurent.pinchart@ideasonboard.com>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260423230059.3180987-1-laurent.pinchart@ideasonboard.com>", "References": "<20260423230059.3180987-1-laurent.pinchart@ideasonboard.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "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>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Fix a few documentation issues:\n\n- Drop unneeded \\fn\n- Sort \\brief and \\tparam correctly\n- Add missing \\tparam and \\param\n- Explain the T and U template parameters for get()\n- Standardize the naming of dictionary keys as \"key\"\n- Fix typo\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\nReviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>\nReviewed-by: Isaac Scott <isaac.scott@ideasonboard.com>\n---\nChanges since v1:\n\n- Fix typo\n---\n src/libcamera/yaml_object.cpp | 29 ++++++++++++++++-------------\n 1 file changed, 16 insertions(+), 13 deletions(-)", "diff": "diff --git a/src/libcamera/yaml_object.cpp b/src/libcamera/yaml_object.cpp\nindex 94f99374f415..6ba4e1a94fb1 100644\n--- a/src/libcamera/yaml_object.cpp\n+++ b/src/libcamera/yaml_object.cpp\n@@ -81,7 +81,6 @@ YamlObject::~YamlObject() = default;\n */\n \n /**\n- * \\fn YamlObject::size()\n * \\brief Retrieve the number of elements in a dictionary or list YamlObject\n *\n * This function retrieves the size of the YamlObject, defined as the number of\n@@ -104,8 +103,8 @@ std::size_t YamlObject::size() const\n \n /**\n * \\fn template<typename T> YamlObject::get<T>() const\n- * \\tparam T Type of the value\n * \\brief Parse the YamlObject as a \\a T value\n+ * \\tparam T Type of the value\n *\n * This function parses the value of the YamlObject as a \\a T object, and\n * returns the value. If parsing fails (usually because the YamlObject doesn't\n@@ -120,11 +119,14 @@ std::size_t YamlObject::size() const\n /**\n * \\fn template<typename T, typename U> YamlObject::get<T>(U &&defaultValue) const\n * \\brief Parse the YamlObject as a \\a T value\n+ * \\tparam T Type of the value\n+ * \\tparam U Type of the default value\n * \\param[in] defaultValue The default value when failing to parse\n *\n * This function parses the value of the YamlObject as a \\a T object, and\n * returns the value. If parsing fails (usually because the YamlObject doesn't\n- * store a \\a T value), the \\a defaultValue is returned.\n+ * store a \\a T value), the \\a defaultValue is returned. Type \\a U must be\n+ * convertible to type \\a T.\n *\n * Unlike the get() function, this overload does not support std::vector for the\n * type \\a T.\n@@ -135,6 +137,7 @@ std::size_t YamlObject::size() const\n /**\n * \\fn template<typename T> YamlObject::set<T>(T &&value)\n * \\brief Set the value of a YamlObject\n+ * \\tparam T Type of the value\n * \\param[in] value The value\n *\n * This function sets the value stored in a YamlObject to \\a value. The value is\n@@ -352,8 +355,8 @@ template struct YamlObject::Accessor<std::vector<std::string>>;\n */\n \n /**\n- * \\fn YamlObject::operator[](std::size_t index) const\n * \\brief Retrieve the element from list YamlObject by index\n+ * \\param[in] index The element index\n *\n * This function retrieves an element of the YamlObject. Only YamlObject\n * instances of List type associate elements with index, calling this function\n@@ -371,13 +374,13 @@ const YamlObject &YamlObject::operator[](std::size_t index) const\n }\n \n /**\n- * \\fn YamlObject::contains()\n * \\brief Check if an element of a dictionary exists\n+ * \\param[in] key The element key\n *\n- * This function check if the YamlObject contains an element. Only YamlObject\n- * instances of Dictionary type associate elements with names, calling this\n- * function on other types of instances is invalid and results in undefined\n- * behaviour.\n+ * This function checks if the YamlObject contains an element for the given\n+ * \\a key. Only YamlObject instances of Dictionary type associate elements with\n+ * keys, calling this function on other types of instances is invalid and\n+ * results in undefined behaviour.\n *\n * \\return True if an element exists, false otherwise\n */\n@@ -387,11 +390,11 @@ bool YamlObject::contains(std::string_view key) const\n }\n \n /**\n- * \\fn YamlObject::operator[](std::string_view key) const\n- * \\brief Retrieve a member by name from the dictionary\n+ * \\brief Retrieve a member by key from the dictionary\n+ * \\param[in] key The element key\n *\n- * This function retrieve a member of a YamlObject by name. Only YamlObject\n- * instances of Dictionary type associate elements with names, calling this\n+ * This function retrieves a member of a YamlObject by \\a key. Only YamlObject\n+ * instances of Dictionary type associate elements with keys, calling this\n * function on other types of instances or with a nonexistent key results in an\n * empty object.\n *\n", "prefixes": [ "v3", "12/37" ] }