Show a patch.

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

{
    "id": 364,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/364/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/364/",
    "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": "<20190124101651.9993-10-laurent.pinchart@ideasonboard.com>",
    "date": "2019-01-24T10:16:50",
    "name": "[libcamera-devel,09/10] libcamera: pipeline: uvc: Mark the media device as hotpluggable",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "eef5442d36d22a99b99812316f91cc2e4a154b9c",
    "submitter": {
        "id": 2,
        "url": "https://patchwork.libcamera.org/api/1.1/people/2/?format=api",
        "name": "Laurent Pinchart",
        "email": "laurent.pinchart@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/364/mbox/",
    "series": [
        {
            "id": 125,
            "url": "https://patchwork.libcamera.org/api/1.1/series/125/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=125",
            "date": "2019-01-24T10:16:41",
            "name": "Hotplug support and object lifetime management",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/125/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/364/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/364/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<laurent.pinchart@ideasonboard.com>",
        "Received": [
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 2A67460CA5\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 24 Jan 2019 11:17:00 +0100 (CET)",
            "from pendragon.bb.dnainternet.fi\n\t(dfj612yhrgyx302h3jwwy-3.rev.dnainternet.fi\n\t[IPv6:2001:14ba:21f5:5b00:ce28:277f:58d7:3ca4])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id B390B23A;\n\tThu, 24 Jan 2019 11:16:59 +0100 (CET)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1548325019;\n\tbh=wuiCFL94jMZ7GB3MS6fK6XHOyx0EidxESTbr0aEWsa0=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=Gt2j0IqF3C8tqm2HCFpgx8g0gmZAalcaO8i3wdusm6pBpqNjUzvsX8rUDsmPwD0ul\n\tFz05ZC8PwD/TYkwkNlPsGDn4dAqWveE3zpbDTNZSSWKtCPiHsoW8vujMlPbW7PK9J6\n\tukR1URUYxS8W0dfstKM1J6pYdRpXZn8NHrHXyv5k=",
        "From": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Thu, 24 Jan 2019 12:16:50 +0200",
        "Message-Id": "<20190124101651.9993-10-laurent.pinchart@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.19.2",
        "In-Reply-To": "<20190124101651.9993-1-laurent.pinchart@ideasonboard.com>",
        "References": "<20190124101651.9993-1-laurent.pinchart@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH 09/10] libcamera: pipeline: uvc: Mark the\n\tmedia device as hotpluggable",
        "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": "Thu, 24 Jan 2019 10:17:01 -0000"
    },
    "content": "UVC devices can be hot-unplugged. Mark the corresponding media device as\nhotpluggable to ensure proper disconnection support.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n src/libcamera/pipeline/uvcvideo.cpp | 1 +\n 1 file changed, 1 insertion(+)",
    "diff": "diff --git a/src/libcamera/pipeline/uvcvideo.cpp b/src/libcamera/pipeline/uvcvideo.cpp\nindex c8f1bf553bfe..f84fa41515f1 100644\n--- a/src/libcamera/pipeline/uvcvideo.cpp\n+++ b/src/libcamera/pipeline/uvcvideo.cpp\n@@ -49,6 +49,7 @@ bool PipelineHandlerUVC::match(DeviceEnumerator *enumerator)\n \n \tstd::shared_ptr<Camera> camera = Camera::create(this, dev_->model());\n \tregisterCamera(std::move(camera));\n+\thotplugMediaDevice(dev_.get());\n \n \treturn true;\n }\n",
    "prefixes": [
        "libcamera-devel",
        "09/10"
    ]
}