Show a patch.

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

{
    "id": 10665,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/10665/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/10665/",
    "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": "<20201215004811.602429-6-niklas.soderlund@ragnatech.se>",
    "date": "2020-12-15T00:48:08",
    "name": "[libcamera-devel,v4,5/8] libcamera: camera_sensor: Expose the camera device",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "7c13016c60e32c274627feac1aac7b7f7e923eb2",
    "submitter": {
        "id": 5,
        "url": "https://patchwork.libcamera.org/api/1.1/people/5/?format=api",
        "name": "Niklas Söderlund",
        "email": "niklas.soderlund@ragnatech.se"
    },
    "delegate": {
        "id": 16,
        "url": "https://patchwork.libcamera.org/api/1.1/users/16/?format=api",
        "username": "neg",
        "first_name": "Niklas",
        "last_name": "Söderlund",
        "email": "niklas.soderlund@ragnatech.se"
    },
    "mbox": "https://patchwork.libcamera.org/patch/10665/mbox/",
    "series": [
        {
            "id": 1533,
            "url": "https://patchwork.libcamera.org/api/1.1/series/1533/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1533",
            "date": "2020-12-15T00:48:03",
            "name": "libcamera: Add helper for controls that take effect with a delay",
            "version": 4,
            "mbox": "https://patchwork.libcamera.org/series/1533/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/10665/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/10665/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 6F0AFBD80A\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 15 Dec 2020 00:48:29 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 4C375615D5;\n\tTue, 15 Dec 2020 01:48:29 +0100 (CET)",
            "from bin-mail-out-06.binero.net (bin-mail-out-06.binero.net\n\t[195.74.38.229])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 5FA2F61590\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 15 Dec 2020 01:48:27 +0100 (CET)",
            "from bismarck.berto.se (p4fca2458.dip0.t-ipconnect.de\n\t[79.202.36.88])\n\tby bin-vsp-out-02.atm.binero.net (Halon) with ESMTPA\n\tid 3d4daf92-3e6f-11eb-a076-005056917f90;\n\tTue, 15 Dec 2020 01:48:26 +0100 (CET)"
        ],
        "X-Halon-ID": "3d4daf92-3e6f-11eb-a076-005056917f90",
        "Authorized-sender": "niklas.soderlund@fsdn.se",
        "From": "=?utf-8?q?Niklas_S=C3=B6derlund?= <niklas.soderlund@ragnatech.se>",
        "To": "libcamera-devel@lists.libcamera.org,\n\tnaush@raspberrypi.com",
        "Date": "Tue, 15 Dec 2020 01:48:08 +0100",
        "Message-Id": "<20201215004811.602429-6-niklas.soderlund@ragnatech.se>",
        "X-Mailer": "git-send-email 2.29.2",
        "In-Reply-To": "<20201215004811.602429-1-niklas.soderlund@ragnatech.se>",
        "References": "<20201215004811.602429-1-niklas.soderlund@ragnatech.se>",
        "MIME-Version": "1.0",
        "Subject": "[libcamera-devel] [PATCH v4 5/8] libcamera: camera_sensor: Expose\n\tthe camera device",
        "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=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Expose the device backing the CameraSensor instance.\n\nSigned-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>\n---\n* Changes since v3\n- New, needed to be able to move the DelayedControls handling out of\n  CameraSensor.\n---\n include/libcamera/internal/camera_sensor.h | 2 ++\n src/libcamera/camera_sensor.cpp            | 6 ++++++\n 2 files changed, 8 insertions(+)",
    "diff": "diff --git a/include/libcamera/internal/camera_sensor.h b/include/libcamera/internal/camera_sensor.h\nindex f80d836161a564e7..a70e024aa327f69b 100644\n--- a/include/libcamera/internal/camera_sensor.h\n+++ b/include/libcamera/internal/camera_sensor.h\n@@ -61,6 +61,8 @@ public:\n \tControlList getControls(const std::vector<uint32_t> &ids);\n \tint setControls(ControlList *ctrls);\n \n+\tV4L2Subdevice *device() { return subdev_.get(); }\n+\n \tconst ControlList &properties() const { return properties_; }\n \tint sensorInfo(CameraSensorInfo *info) const;\n \ndiff --git a/src/libcamera/camera_sensor.cpp b/src/libcamera/camera_sensor.cpp\nindex 1628ba9c892b0eaf..df45b2b803617bfd 100644\n--- a/src/libcamera/camera_sensor.cpp\n+++ b/src/libcamera/camera_sensor.cpp\n@@ -486,6 +486,12 @@ ControlList CameraSensor::getControls(const std::vector<uint32_t> &ids)\n \treturn subdev_->getControls(ids);\n }\n \n+/**\n+ * \\fn CameraSensor::device()\n+ * \\brief Retrieve the camera sensor device\n+ * \\return The camera sensor device\n+ */\n+\n /**\n  * \\fn CameraSensor::properties()\n  * \\brief Retrieve the camera sensor properties\n",
    "prefixes": [
        "libcamera-devel",
        "v4",
        "5/8"
    ]
}