Show a patch.

GET /api/1.1/patches/17147/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 17147,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/17147/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/17147/",
    "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": "<20220818064923.2573060-2-paul.elder@ideasonboard.com>",
    "date": "2022-08-18T06:49:16",
    "name": "[libcamera-devel,v2,1/7] test: generated_serializer: Test enum that is struct member",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "937edd6121e561723907231f20a9f2fc6589f043",
    "submitter": {
        "id": 17,
        "url": "https://patchwork.libcamera.org/api/1.1/people/17/?format=api",
        "name": "Paul Elder",
        "email": "paul.elder@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/17147/mbox/",
    "series": [
        {
            "id": 3424,
            "url": "https://patchwork.libcamera.org/api/1.1/series/3424/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3424",
            "date": "2022-08-18T06:49:15",
            "name": "utils: ipc: Add support for enums and Flags",
            "version": 2,
            "mbox": "https://patchwork.libcamera.org/series/3424/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/17147/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/17147/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 27DFAC3272\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 18 Aug 2022 06:49:40 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id D9C6261FC3;\n\tThu, 18 Aug 2022 08:49:39 +0200 (CEST)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 26F9661FA3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 18 Aug 2022 08:49:38 +0200 (CEST)",
            "from pyrite.rasen.tech (KD027085204050.au-net.ne.jp [27.85.204.50])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id F11734A8;\n\tThu, 18 Aug 2022 08:49:35 +0200 (CEST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1660805379;\n\tbh=bDvORoIUe0uTvaji4up/ANrXfR+JDCGHoGlryz7BcPI=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=EoH2yr8iIWTxH5FFmNMmH1asero5Sc6qwWIyVJC5PEyIPDMfyc6+rC7TPO95FLjko\n\tSoHmyp2FfOF6oVypMv1T449KGhUpt805KpdiDJwjFN79DaQIp3sudkpZQi0CxbSY2t\n\tFnHhr8GfKPxKPosI2L9sHf9A/vsUTOKpJe8/2Be693Nfli2bf9L5PSZosNAAkliKeA\n\tF15fsGf3vyk8yLzCX4cCuWnb6OwyEOOGLUiugQDGUXdX7kegNxYB+F9NNWZt9KfWcr\n\tcRfG2hEwGn737G2At1h2AI8WOMNy97Javj3fjoRfNitDX+UiXs2SKVnkJwfF0ZTc6e\n\tXqVkjsqJUwXUQ==",
            "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1660805377;\n\tbh=bDvORoIUe0uTvaji4up/ANrXfR+JDCGHoGlryz7BcPI=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=e+WnHS/FEANwxf4CJaiYpO5wF5D4VZC4zh5f+JjRca56Q01G1OPufZ/s96pVB6wfe\n\tO2CbNFhkYkA7vLsRuY/OWyydN3jrW5GCLKGx8kDXFVIH70Vrmr8oGxcmj0RfTOmxb2\n\tGD6cMM5ayk/rgDJ47kxKCYTtnJhEePdueZSkEvgY="
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"e+WnHS/F\"; dkim-atps=neutral",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Thu, 18 Aug 2022 15:49:16 +0900",
        "Message-Id": "<20220818064923.2573060-2-paul.elder@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.30.2",
        "In-Reply-To": "<20220818064923.2573060-1-paul.elder@ideasonboard.com>",
        "References": "<20220818064923.2573060-1-paul.elder@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH v2 1/7] test: generated_serializer: Test\n\tenum that is struct member",
        "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": "Paul Elder via libcamera-devel <libcamera-devel@lists.libcamera.org>",
        "Reply-To": "Paul Elder <paul.elder@ideasonboard.com>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Add an enum field to the test struct member to test\nserialization/deserialization of enums that are struct members.\n\nSigned-off-by: Paul Elder <paul.elder@ideasonboard.com>\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\nReviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n\n---\nNo change in v2\n---\n .../generated_serializer/generated_serializer_test.cpp        | 4 ++++\n .../generated_serializer/include/libcamera/ipa/test.mojom     | 1 +\n 2 files changed, 5 insertions(+)",
    "diff": "diff --git a/test/serialization/generated_serializer/generated_serializer_test.cpp b/test/serialization/generated_serializer/generated_serializer_test.cpp\nindex 698c81d6..a4639a80 100644\n--- a/test/serialization/generated_serializer/generated_serializer_test.cpp\n+++ b/test/serialization/generated_serializer/generated_serializer_test.cpp\n@@ -51,6 +51,7 @@ if (struct1.field != struct2.field) {\t\t\t\t\\\n \t\tt.s2 = \"goodbye\";\n \t\tt.s3 = \"lorem ipsum\";\n \t\tt.i  = 58527;\n+\t\tt.c = ipa::test::IPAOperationInit;\n \n \t\tstd::vector<uint8_t> serialized;\n \n@@ -69,6 +70,7 @@ if (struct1.field != struct2.field) {\t\t\t\t\\\n \t\tTEST_FIELD_EQUALITY(t, u, s2);\n \t\tTEST_FIELD_EQUALITY(t, u, s3);\n \t\tTEST_FIELD_EQUALITY(t, u, i);\n+\t\tTEST_FIELD_EQUALITY(t, u, c);\n \n \n \t\t/* Test vector of generated structs */\n@@ -92,11 +94,13 @@ if (struct1.field != struct2.field) {\t\t\t\t\\\n \t\tTEST_FIELD_EQUALITY(v[0], w[0], s2);\n \t\tTEST_FIELD_EQUALITY(v[0], w[0], s3);\n \t\tTEST_FIELD_EQUALITY(v[0], w[0], i);\n+\t\tTEST_FIELD_EQUALITY(v[0], w[0], c);\n \n \t\tTEST_FIELD_EQUALITY(v[1], w[1], s1);\n \t\tTEST_FIELD_EQUALITY(v[1], w[1], s2);\n \t\tTEST_FIELD_EQUALITY(v[1], w[1], s3);\n \t\tTEST_FIELD_EQUALITY(v[1], w[1], i);\n+\t\tTEST_FIELD_EQUALITY(v[1], w[1], c);\n \n \t\treturn TestPass;\n \t}\ndiff --git a/test/serialization/generated_serializer/include/libcamera/ipa/test.mojom b/test/serialization/generated_serializer/include/libcamera/ipa/test.mojom\nindex 5f200885..73081b40 100644\n--- a/test/serialization/generated_serializer/include/libcamera/ipa/test.mojom\n+++ b/test/serialization/generated_serializer/include/libcamera/ipa/test.mojom\n@@ -18,6 +18,7 @@ struct TestStruct {\n \tstring s2;\n \tint32 i;\n \tstring s3;\n+\tIPAOperationCode c;\n };\n \n interface IPATestInterface {\n",
    "prefixes": [
        "libcamera-devel",
        "v2",
        "1/7"
    ]
}