Show a patch.

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

{
    "id": 10416,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/10416/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/10416/",
    "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": "<20201113063815.10288-2-laurent.pinchart@ideasonboard.com>",
    "date": "2020-11-13T06:38:11",
    "name": "[libcamera-devel,v1,1/5] test: Get event dispatcher from current thread",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "32567674c54addb8fb17be300e8c54aa9004a0d0",
    "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/10416/mbox/",
    "series": [
        {
            "id": 1458,
            "url": "https://patchwork.libcamera.org/api/1.1/series/1458/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1458",
            "date": "2020-11-13T06:38:10",
            "name": "cam: Move request processing to main thread",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/1458/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/10416/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/10416/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 3347DBE087\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 13 Nov 2020 06:38:26 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id D777163149;\n\tFri, 13 Nov 2020 07:38:25 +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 56A3D63149\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 13 Nov 2020 07:38:24 +0100 (CET)",
            "from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id E9D0631A\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 13 Nov 2020 07:38:23 +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=\"UK8S4QuH\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1605249504;\n\tbh=HT3CDBwjNQs1AYkzp9kXeF/Yrwx/R8PDIGaQPmyePpE=;\n\th=From:To:Subject:Date:In-Reply-To:References:From;\n\tb=UK8S4QuHFBwnO4Hb3ltekY2AK/0sufD6Rv5MWIpGt3b/XHNaCwBL0zm+KU2C8M/9I\n\tsl+1KT1OgvXSYqD5zpcV4CYkfrOM8+SxomVGSb5jC7QIVz4G06vYpKx+JCypt4LA5D\n\tIcOY5nNXbXJ+S4tVi1wcM1pL1GUMcC//h4PwQnm0=",
        "From": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Fri, 13 Nov 2020 08:38:11 +0200",
        "Message-Id": "<20201113063815.10288-2-laurent.pinchart@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.27.0",
        "In-Reply-To": "<20201113063815.10288-1-laurent.pinchart@ideasonboard.com>",
        "References": "<20201113063815.10288-1-laurent.pinchart@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Subject": "[libcamera-devel] [PATCH v1 1/5] test: Get event dispatcher from\n\tcurrent thread",
        "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": "Get the event dispatcher from the current thread instead of the camera\nmanager. This prepares for the removal of\nCameraManager::eventDispatcher().\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n test/camera/buffer_import.cpp | 3 ++-\n test/camera/capture.cpp       | 4 +++-\n 2 files changed, 5 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/test/camera/buffer_import.cpp b/test/camera/buffer_import.cpp\nindex 4b626dffa575..ccf532d7b7fc 100644\n--- a/test/camera/buffer_import.cpp\n+++ b/test/camera/buffer_import.cpp\n@@ -17,6 +17,7 @@\n \n #include \"libcamera/internal/device_enumerator.h\"\n #include \"libcamera/internal/media_device.h\"\n+#include \"libcamera/internal/thread.h\"\n #include \"libcamera/internal/v4l2_videodevice.h\"\n \n #include \"buffer_source.h\"\n@@ -131,7 +132,7 @@ protected:\n \t\t\t}\n \t\t}\n \n-\t\tEventDispatcher *dispatcher = cm_->eventDispatcher();\n+\t\tEventDispatcher *dispatcher = Thread::current()->eventDispatcher();\n \n \t\tTimer timer;\n \t\ttimer.start(1000);\ndiff --git a/test/camera/capture.cpp b/test/camera/capture.cpp\nindex f13ca53b8cdf..fd5292b7c8c9 100644\n--- a/test/camera/capture.cpp\n+++ b/test/camera/capture.cpp\n@@ -11,6 +11,8 @@\n #include <libcamera/framebuffer_allocator.h>\n #include <libcamera/timer.h>\n \n+#include \"libcamera/internal/thread.h\"\n+\n #include \"camera_test.h\"\n #include \"test.h\"\n \n@@ -131,7 +133,7 @@ protected:\n \t\t\t}\n \t\t}\n \n-\t\tEventDispatcher *dispatcher = cm_->eventDispatcher();\n+\t\tEventDispatcher *dispatcher = Thread::current()->eventDispatcher();\n \n \t\tTimer timer;\n \t\ttimer.start(1000);\n",
    "prefixes": [
        "libcamera-devel",
        "v1",
        "1/5"
    ]
}