Show a patch.

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

{
    "id": 11978,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/11978/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/11978/",
    "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": "<20210418145545.29250-1-jacopo@jmondi.org>",
    "date": "2021-04-18T14:55:45",
    "name": "[libcamera-devel] libcamera: Drop argument from LIBCAMERA_DECLARE_PRIVATE",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "3d8294128f5a51fef4f45f3d1e9adebeba8bbaa3",
    "submitter": {
        "id": 3,
        "url": "https://patchwork.libcamera.org/api/1.1/people/3/?format=api",
        "name": "Jacopo Mondi",
        "email": "jacopo@jmondi.org"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/11978/mbox/",
    "series": [
        {
            "id": 1945,
            "url": "https://patchwork.libcamera.org/api/1.1/series/1945/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1945",
            "date": "2021-04-18T14:55:45",
            "name": "[libcamera-devel] libcamera: Drop argument from LIBCAMERA_DECLARE_PRIVATE",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/1945/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/11978/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/11978/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 37185BD814\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSun, 18 Apr 2021 14:55:12 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 76A4F6880A;\n\tSun, 18 Apr 2021 16:55:11 +0200 (CEST)",
            "from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net\n\t[217.70.183.197])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 1B081602CA\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSun, 18 Apr 2021 16:55:10 +0200 (CEST)",
            "from uno.localdomain (mob-5-92-65-68.net.vodafone.it [5.92.65.68])\n\t(Authenticated sender: jacopo@jmondi.org)\n\tby relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 0FCF41C0005;\n\tSun, 18 Apr 2021 14:55:08 +0000 (UTC)"
        ],
        "X-Originating-IP": "5.92.65.68",
        "From": "Jacopo Mondi <jacopo@jmondi.org>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Sun, 18 Apr 2021 16:55:45 +0200",
        "Message-Id": "<20210418145545.29250-1-jacopo@jmondi.org>",
        "X-Mailer": "git-send-email 2.31.1",
        "MIME-Version": "1.0",
        "Subject": "[libcamera-devel] [PATCH] libcamera: Drop argument from\n\tLIBCAMERA_DECLARE_PRIVATE",
        "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": "The LIBCAMERA_DECLARE_PRIVATE() macro, used by the library classes\nthat inherits from libcamera::Extensible in order to implement the\nPIMPL pattern, expands to:\n\npublic:\t\t\t\t\t\t\t\t\t\\\n\tclass Private;\t\t\t\t\t\t\t\\\n\tfriend class Private;\n\nThe 'klass' argument is not used and it might confuse developers as\nit might hint that the class that defines the pattern's implementation\ncan be freely named, while it is actually hardcoded to 'Private'.\n\nDrop the argument from the macro definition.\n\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n include/libcamera/camera.h         | 2 +-\n include/libcamera/camera_manager.h | 2 +-\n include/libcamera/class.h          | 4 ++--\n src/android/camera_buffer.h        | 2 +-\n 4 files changed, 5 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/include/libcamera/camera.h b/include/libcamera/camera.h\nindex 326b14d0ca01..d71641805c0a 100644\n--- a/include/libcamera/camera.h\n+++ b/include/libcamera/camera.h\n@@ -74,7 +74,7 @@ protected:\n class Camera final : public Object, public std::enable_shared_from_this<Camera>,\n \t\t     public Extensible\n {\n-\tLIBCAMERA_DECLARE_PRIVATE(Camera)\n+\tLIBCAMERA_DECLARE_PRIVATE()\n \n public:\n \tstatic std::shared_ptr<Camera> create(PipelineHandler *pipe,\ndiff --git a/include/libcamera/camera_manager.h b/include/libcamera/camera_manager.h\nindex 35a59f0df4ca..c2f0b786da8e 100644\n--- a/include/libcamera/camera_manager.h\n+++ b/include/libcamera/camera_manager.h\n@@ -22,7 +22,7 @@ class Camera;\n \n class CameraManager : public Object, public Extensible\n {\n-\tLIBCAMERA_DECLARE_PRIVATE(CameraManager)\n+\tLIBCAMERA_DECLARE_PRIVATE()\n public:\n \tCameraManager();\n \t~CameraManager();\ndiff --git a/include/libcamera/class.h b/include/libcamera/class.h\nindex 920624d8e726..466114ecfaf4 100644\n--- a/include/libcamera/class.h\n+++ b/include/libcamera/class.h\n@@ -30,7 +30,7 @@ namespace libcamera {\n #endif\n \n #ifndef __DOXYGEN__\n-#define LIBCAMERA_DECLARE_PRIVATE(klass)\t\t\t\t\\\n+#define LIBCAMERA_DECLARE_PRIVATE()\t\t\t\t\t\\\n public:\t\t\t\t\t\t\t\t\t\\\n \tclass Private;\t\t\t\t\t\t\t\\\n \tfriend class Private;\n@@ -46,7 +46,7 @@ public:\t\t\t\t\t\t\t\t\t\\\n \t_o<Public>();\n \n #else\n-#define LIBCAMERA_DECLARE_PRIVATE(klass)\n+#define LIBCAMERA_DECLARE_PRIVATE()\n #define LIBCAMERA_DECLARE_PUBLIC(klass)\n #define LIBCAMERA_D_PTR(klass)\n #define LIBCAMERA_O_PTR(klass)\ndiff --git a/src/android/camera_buffer.h b/src/android/camera_buffer.h\nindex 7e8970b49f49..c88124b2b3f3 100644\n--- a/src/android/camera_buffer.h\n+++ b/src/android/camera_buffer.h\n@@ -14,7 +14,7 @@\n \n class CameraBuffer final : public libcamera::Extensible\n {\n-\tLIBCAMERA_DECLARE_PRIVATE(CameraBuffer)\n+\tLIBCAMERA_DECLARE_PRIVATE()\n \n public:\n \tCameraBuffer(buffer_handle_t camera3Buffer, int flags);\n",
    "prefixes": [
        "libcamera-devel"
    ]
}