Show a patch.

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

{
    "id": 906,
    "url": "https://patchwork.libcamera.org/api/patches/906/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/906/",
    "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": "<20190403150735.27580-2-jacopo@jmondi.org>",
    "date": "2019-04-03T15:07:28",
    "name": "[libcamera-devel,v3,1/8] libcamera: utils: Define BIT() macro",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "2b57b11ffbdbec5fe6b30af2eca2dedd5ed6f921",
    "submitter": {
        "id": 3,
        "url": "https://patchwork.libcamera.org/api/people/3/?format=api",
        "name": "Jacopo Mondi",
        "email": "jacopo@jmondi.org"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/906/mbox/",
    "series": [
        {
            "id": 239,
            "url": "https://patchwork.libcamera.org/api/series/239/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=239",
            "date": "2019-04-03T15:07:27",
            "name": "libcamera: ipu3: Multiple streams support",
            "version": 3,
            "mbox": "https://patchwork.libcamera.org/series/239/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/906/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/906/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<jacopo@jmondi.org>",
        "Received": [
            "from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net\n\t[217.70.183.199])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 2D45F60DB2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed,  3 Apr 2019 17:06:56 +0200 (CEST)",
            "from uno.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101])\n\t(Authenticated sender: jacopo@jmondi.org)\n\tby relay9-d.mail.gandi.net (Postfix) with ESMTPSA id B370FFF816;\n\tWed,  3 Apr 2019 15:06:55 +0000 (UTC)"
        ],
        "X-Originating-IP": "2.224.242.101",
        "From": "Jacopo Mondi <jacopo@jmondi.org>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Wed,  3 Apr 2019 17:07:28 +0200",
        "Message-Id": "<20190403150735.27580-2-jacopo@jmondi.org>",
        "X-Mailer": "git-send-email 2.21.0",
        "In-Reply-To": "<20190403150735.27580-1-jacopo@jmondi.org>",
        "References": "<20190403150735.27580-1-jacopo@jmondi.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH v3 1/8] libcamera: utils: Define BIT()\n\tmacro",
        "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": "Wed, 03 Apr 2019 15:06:56 -0000"
    },
    "content": "Define BIT(b_) macro which expands to a left bit shift.\n\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n src/libcamera/include/utils.h | 1 +\n src/libcamera/utils.cpp       | 5 +++++\n 2 files changed, 6 insertions(+)",
    "diff": "diff --git a/src/libcamera/include/utils.h b/src/libcamera/include/utils.h\nindex 79038a96feab..1a6cf7f7b9dc 100644\n--- a/src/libcamera/include/utils.h\n+++ b/src/libcamera/include/utils.h\n@@ -10,6 +10,7 @@\n #include <memory>\n \n #define ARRAY_SIZE(a)\t(sizeof(a) / sizeof(a[0]))\n+#define BIT(b_)\t\t(1 << (b_))\n \n namespace libcamera {\n \ndiff --git a/src/libcamera/utils.cpp b/src/libcamera/utils.cpp\nindex cd0fd7614cc7..1a5a2a03b1ca 100644\n--- a/src/libcamera/utils.cpp\n+++ b/src/libcamera/utils.cpp\n@@ -24,6 +24,11 @@ namespace utils {\n  * \\brief Determine the number of elements in the static array.\n  */\n \n+/**\n+ * \\def BIT(b)\n+ * \\brief Bitwise left shift by \\a b bits\n+ */\n+\n /**\n  * \\brief Strip the directory prefix from the path\n  * \\param[in] path The path to process\n",
    "prefixes": [
        "libcamera-devel",
        "v3",
        "1/8"
    ]
}