Show a patch.

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

{
    "id": 10372,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/10372/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/10372/",
    "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": "<20201106103707.49660-25-paul.elder@ideasonboard.com>",
    "date": "2020-11-06T10:36:54",
    "name": "[libcamera-devel,v4,24/37] ipa: Add core.mojom",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "9c42e5b371f5519d79e16b49ba68011adee74181",
    "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/10372/mbox/",
    "series": [
        {
            "id": 1448,
            "url": "https://patchwork.libcamera.org/api/1.1/series/1448/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1448",
            "date": "2020-11-06T10:36:30",
            "name": "IPA isolation implementation",
            "version": 4,
            "mbox": "https://patchwork.libcamera.org/series/1448/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/10372/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/10372/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 7E320BDB89\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri,  6 Nov 2020 10:38:14 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 4855262D25;\n\tFri,  6 Nov 2020 11:38:14 +0100 (CET)",
            "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 6141462D22\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri,  6 Nov 2020 11:38:13 +0100 (CET)",
            "from pyrite.rasen.tech (unknown\n\t[IPv6:2400:4051:61:600:2c71:1b79:d06d:5032])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id CC5ABB16;\n\tFri,  6 Nov 2020 11:38:11 +0100 (CET)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"iwQu1KUp\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1604659093;\n\tbh=payW1DbDLSPMi7lfYd/f1U8V3uc5yyN16GTKuh/Bkbg=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=iwQu1KUpTJgNk3/3NDsGU7ewGjybKKmJ94VpLZgrfBQSUhlZPM+ta9ZDz1oVsLUsN\n\tQME4ctJp1zYf0tgdG8BWPHYBXD7nIDXrTOg939OZeDDmmnMp6Q7b8iCs2CVr+2g3H7\n\t5iPSlygiOy7UpnrnpWU2RtHHLD8hi8Z+Ixae8Wmo=",
        "From": "Paul Elder <paul.elder@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Fri,  6 Nov 2020 19:36:54 +0900",
        "Message-Id": "<20201106103707.49660-25-paul.elder@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.27.0",
        "In-Reply-To": "<20201106103707.49660-1-paul.elder@ideasonboard.com>",
        "References": "<20201106103707.49660-1-paul.elder@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Subject": "[libcamera-devel] [PATCH v4 24/37] ipa: Add core.mojom",
        "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>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Add a base mojom file to contain empty mojom definitions of libcamera\nobjects, as well as documentation for the IPA interfaces that need to be\ndefined in the mojom files.\n\nSigned-off-by: Paul Elder <paul.elder@ideasonboard.com>\n\n---\nChanges in v4:\n- move docs to IPA guide\n\nChanges in v3:\n- add doc that structs need to be defined\n- add doc to recommend namespacing\n- change indentation\n- add requirement that base controls *must* be defined in\n  libcamera::{pipeline_name}::Controls\n\nNew in v2\n---\n include/libcamera/ipa/core.mojom       | 18 ++++++++++++++++++\n include/libcamera/ipa/meson.build      | 18 +++++++++++++++---\n src/libcamera/proxy/meson.build        |  2 +-\n src/libcamera/proxy/worker/meson.build |  2 +-\n 4 files changed, 35 insertions(+), 5 deletions(-)\n create mode 100644 include/libcamera/ipa/core.mojom",
    "diff": "diff --git a/include/libcamera/ipa/core.mojom b/include/libcamera/ipa/core.mojom\nnew file mode 100644\nindex 00000000..ed26aaad\n--- /dev/null\n+++ b/include/libcamera/ipa/core.mojom\n@@ -0,0 +1,18 @@\n+/* SPDX-License-Identifier: LGPL-2.1-or-later */\n+\n+/*\n+ * Any libcamera objects that are used by any interfaces must be declared\n+ * here, and a de/serializer be implemented in IPADataSerializer. In addition,\n+ * the corresponding header file (or forward-declarations) must be placed in\n+ * {pipeline_name}.h.\n+ *\n+ * For libcamera types, the [hasFd] attribute is needed to notify the compiler\n+ * that the struct embeds a FileDescriptor.\n+ */\n+struct CameraSensorInfo {};\n+struct ControlInfoMap {};\n+struct ControlList {};\n+struct FileDescriptor {};\n+[hasFd] struct IPABuffer {};\n+struct IPASettings {};\n+struct IPAStream {};\ndiff --git a/include/libcamera/ipa/meson.build b/include/libcamera/ipa/meson.build\nindex d7a2b6b2..b7caec95 100644\n--- a/include/libcamera/ipa/meson.build\n+++ b/include/libcamera/ipa/meson.build\n@@ -13,6 +13,17 @@ install_headers(libcamera_ipa_headers,\n # Prepare IPA/IPC generation components\n #\n \n+core_mojom_file = 'core.mojom'\n+ipa_mojom_core = custom_target(core_mojom_file.split('.')[0] + '_mojom_module',\n+                               input : core_mojom_file,\n+                               output : core_mojom_file + '-module',\n+                               command : [\n+                                   mojom_parser,\n+                                   '--output-root', meson.build_root(),\n+                                   '--input-root', meson.source_root(),\n+                                   '--mojoms', '@INPUT@'\n+                               ])\n+\n ipa_mojom_files = []\n \n ipa_mojoms = []\n@@ -30,6 +41,7 @@ foreach file : ipa_mojom_files\n     mojom = custom_target(file.split('.')[0] + '_mojom_module',\n                           input : file,\n                           output : file + '-module',\n+                          depends : ipa_mojom_core,\n                           command : [\n                               mojom_parser,\n                               '--output-root', meson.build_root(),\n@@ -41,7 +53,7 @@ foreach file : ipa_mojom_files\n     header = custom_target(name + '_ipa_interface_h',\n                            input : mojom,\n                            output : name + '_ipa_interface.h',\n-                           depends : mojom_templates,\n+                           depends : [mojom_templates, ipa_mojom_core],\n                            command : [\n                                mojom_generator, 'generate',\n                                '-g', 'libcamera',\n@@ -55,7 +67,7 @@ foreach file : ipa_mojom_files\n     serializer = custom_target(name + '_ipa_serializer_h',\n                                input : mojom,\n                                output : name + '_ipa_serializer.h',\n-                               depends : mojom_templates,\n+                               depends : [mojom_templates, ipa_mojom_core],\n                                command : [\n                                    mojom_generator, 'generate',\n                                    '-g', 'libcamera',\n@@ -69,7 +81,7 @@ foreach file : ipa_mojom_files\n     proxy_header = custom_target(name + '_proxy_h',\n                                  input : mojom,\n                                  output : 'ipa_proxy_' + name + '.h',\n-                                 depends : mojom_templates,\n+                                 depends : [mojom_templates, ipa_mojom_core],\n                                  command : [\n                                      mojom_generator, 'generate',\n                                      '-g', 'libcamera',\ndiff --git a/src/libcamera/proxy/meson.build b/src/libcamera/proxy/meson.build\nindex ac68ad08..f27b453a 100644\n--- a/src/libcamera/proxy/meson.build\n+++ b/src/libcamera/proxy/meson.build\n@@ -10,7 +10,7 @@ foreach mojom : ipa_mojoms\n     proxy = custom_target(mojom['name'] + '_proxy_cpp',\n                           input : mojom['mojom'],\n                           output : 'ipa_proxy_' + mojom['name'] + '.cpp',\n-                          depends : [mojom_templates],\n+                          depends : [mojom_templates, ipa_mojom_core],\n                           command : [\n                               mojom_generator, 'generate',\n                               '-g', 'libcamera',\ndiff --git a/src/libcamera/proxy/worker/meson.build b/src/libcamera/proxy/worker/meson.build\nindex 8e0b978a..628bb050 100644\n--- a/src/libcamera/proxy/worker/meson.build\n+++ b/src/libcamera/proxy/worker/meson.build\n@@ -11,7 +11,7 @@ foreach mojom : ipa_mojoms\n     worker = custom_target(mojom['name'] + '_proxy_worker',\n                            input : mojom['mojom'],\n                            output : 'ipa_proxy_' + mojom['name'] + '_worker.cpp',\n-                           depends : [mojom_templates],\n+                           depends : [mojom_templates, ipa_mojom_core],\n                            command : [\n                                mojom_generator, 'generate',\n                                '-g', 'libcamera',\n",
    "prefixes": [
        "libcamera-devel",
        "v4",
        "24/37"
    ]
}