Show a patch.

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

{
    "id": 1839,
    "url": "https://patchwork.libcamera.org/api/patches/1839/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/1839/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/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": "<20190818011329.14499-3-laurent.pinchart@ideasonboard.com>",
    "date": "2019-08-18T01:13:17",
    "name": "[libcamera-devel,02/14] libcamera: proxy: Get event dispatcher from current thread",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "2589a085b43ab0eb0b6b94467d12f6398f17c750",
    "submitter": {
        "id": 2,
        "url": "https://patchwork.libcamera.org/api/people/2/?format=api",
        "name": "Laurent Pinchart",
        "email": "laurent.pinchart@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/1839/mbox/",
    "series": [
        {
            "id": 464,
            "url": "https://patchwork.libcamera.org/api/series/464/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=464",
            "date": "2019-08-18T01:13:15",
            "name": "Assorted fixes for Android camera HAL",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/464/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/1839/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/1839/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 018EF60BE5\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSun, 18 Aug 2019 03:13:41 +0200 (CEST)",
            "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 908EF2AF\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSun, 18 Aug 2019 03:13:40 +0200 (CEST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1566090820;\n\tbh=vvmW1RbYdLnl447BMgqSdazGzQ/LgAaB1ZKSpCju4ss=;\n\th=From:To:Subject:Date:In-Reply-To:References:From;\n\tb=cdvuNUGuuVkLNzxle/CJpBQlenM+kxG4Ee7Gy+/dFa19/xz4Y3KdyD4ZumF2VQXyi\n\tnOPkCFbTze25FoZcIkt9bjGO0jkHutX3AH/6SsHmJKXzL+xq3Ovj7AEj8q4Tu1fID/\n\tuSb7tAtJWjPE/h8nCQGMEfPhcYCnZzX8GU/3kHho=",
        "From": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Sun, 18 Aug 2019 04:13:17 +0300",
        "Message-Id": "<20190818011329.14499-3-laurent.pinchart@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.21.0",
        "In-Reply-To": "<20190818011329.14499-1-laurent.pinchart@ideasonboard.com>",
        "References": "<20190818011329.14499-1-laurent.pinchart@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH 02/14] libcamera: proxy: Get event\n\tdispatcher from current thread",
        "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": "Sun, 18 Aug 2019 01:13:41 -0000"
    },
    "content": "Get the event dispatcher from the current thread instead of the camera\nmanager. This prepares for the removal of CameraManager::instance().\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n src/libcamera/proxy/worker/ipa_proxy_linux_worker.cpp | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/src/libcamera/proxy/worker/ipa_proxy_linux_worker.cpp b/src/libcamera/proxy/worker/ipa_proxy_linux_worker.cpp\nindex c43b088ac39c..ffba3ae4de80 100644\n--- a/src/libcamera/proxy/worker/ipa_proxy_linux_worker.cpp\n+++ b/src/libcamera/proxy/worker/ipa_proxy_linux_worker.cpp\n@@ -9,7 +9,6 @@\n #include <sys/types.h>\n #include <unistd.h>\n \n-#include <libcamera/camera_manager.h>\n #include <libcamera/event_dispatcher.h>\n #include <libcamera/ipa/ipa_interface.h>\n #include <libcamera/logging.h>\n@@ -17,6 +16,7 @@\n #include \"ipa_module.h\"\n #include \"ipc_unixsocket.h\"\n #include \"log.h\"\n+#include \"thread.h\"\n #include \"utils.h\"\n \n using namespace libcamera;\n@@ -81,7 +81,7 @@ int main(int argc, char **argv)\n \tLOG(IPAProxyLinuxWorker, Debug) << \"Proxy worker successfully started\";\n \n \t/* \\todo upgrade listening loop */\n-\tEventDispatcher *dispatcher = CameraManager::instance()->eventDispatcher();\n+\tEventDispatcher *dispatcher = Thread::current()->eventDispatcher();\n \twhile (1)\n \t\tdispatcher->processEvents();\n \n",
    "prefixes": [
        "libcamera-devel",
        "02/14"
    ]
}