Show a patch.

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

{
    "id": 1814,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/1814/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/1814/",
    "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": "<20190817105937.29353-3-jacopo@jmondi.org>",
    "date": "2019-08-17T10:59:34",
    "name": "[libcamera-devel,2/5] libcamera: controls: Add camera location control",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "6d373726549b76b0bb6a2bc4c71cd224b548ddbd",
    "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/1814/mbox/",
    "series": [
        {
            "id": 462,
            "url": "https://patchwork.libcamera.org/api/1.1/series/462/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=462",
            "date": "2019-08-17T10:59:32",
            "name": "libcamera: camera_sensor: Collect camera location and sizes",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/462/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/1814/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/1814/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<jacopo@jmondi.org>",
        "Received": [
            "from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net\n\t[217.70.183.197])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 36F1561919\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 17 Aug 2019 12:58:17 +0200 (CEST)",
            "from uno.homenet.telecomitalia.it\n\t(host64-130-dynamic.5-87-r.retail.telecomitalia.it [87.5.130.64])\n\t(Authenticated sender: jacopo@jmondi.org)\n\tby relay5-d.mail.gandi.net (Postfix) with ESMTPSA id ACC711C0002;\n\tSat, 17 Aug 2019 10:58:16 +0000 (UTC)"
        ],
        "X-Originating-IP": "87.5.130.64",
        "From": "Jacopo Mondi <jacopo@jmondi.org>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Sat, 17 Aug 2019 12:59:34 +0200",
        "Message-Id": "<20190817105937.29353-3-jacopo@jmondi.org>",
        "X-Mailer": "git-send-email 2.22.0",
        "In-Reply-To": "<20190817105937.29353-1-jacopo@jmondi.org>",
        "References": "<20190817105937.29353-1-jacopo@jmondi.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH 2/5] libcamera: controls: Add camera\n\tlocation control",
        "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": "Sat, 17 Aug 2019 10:58:17 -0000"
    },
    "content": "Define a new libcamera control used to specify the camera location.\nProvide an enumeration of possible values to describe the \"front\",\n\"back\" and \"external\" camera locations.\n\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n include/libcamera/control_ids.h | 7 +++++++\n 1 file changed, 7 insertions(+)",
    "diff": "diff --git a/include/libcamera/control_ids.h b/include/libcamera/control_ids.h\nindex 75b6a2d5cafe..97ba11ec5f7b 100644\n--- a/include/libcamera/control_ids.h\n+++ b/include/libcamera/control_ids.h\n@@ -12,6 +12,12 @@\n \n namespace libcamera {\n \n+enum CameraLocation {\n+\tCAMERA_LOCATION_FRONT,\n+\tCAMERA_LOCATION_BACK,\n+\tCAMERA_LOCATION_EXTERNAL,\n+};\n+\n enum ControlId {\n \tAwbEnable,\n \tBrightness,\n@@ -19,6 +25,7 @@ enum ControlId {\n \tSaturation,\n \tManualExposure,\n \tManualGain,\n+\tLocation,\n };\n \n } /* namespace libcamera */\n",
    "prefixes": [
        "libcamera-devel",
        "2/5"
    ]
}