Patch Detail
Show a patch.
GET /api/1.1/patches/10199/?format=api
{ "id": 10199, "url": "https://patchwork.libcamera.org/api/1.1/patches/10199/?format=api", "web_url": "https://patchwork.libcamera.org/patch/10199/", "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": "<20201022135605.614240-2-kieran.bingham@ideasonboard.com>", "date": "2020-10-22T13:56:01", "name": "[libcamera-devel,1/5] libcamera: Provide class.h", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "bb3e0f466792420ed367180ff3d260b34e41bb26", "submitter": { "id": 4, "url": "https://patchwork.libcamera.org/api/1.1/people/4/?format=api", "name": "Kieran Bingham", "email": "kieran.bingham@ideasonboard.com" }, "delegate": { "id": 11, "url": "https://patchwork.libcamera.org/api/1.1/users/11/?format=api", "username": "kbingham", "first_name": "Kieran", "last_name": "Bingham", "email": "kieran.bingham@ideasonboard.com" }, "mbox": "https://patchwork.libcamera.org/patch/10199/mbox/", "series": [ { "id": 1404, "url": "https://patchwork.libcamera.org/api/1.1/series/1404/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1404", "date": "2020-10-22T13:56:00", "name": "Delete Copy-Move-Assign", "version": 1, "mbox": "https://patchwork.libcamera.org/series/1404/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/10199/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/10199/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 939B2C3D3C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 22 Oct 2020 13:56:12 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 543BE61462;\n\tThu, 22 Oct 2020 15:56:11 +0200 (CEST)", "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 19701610B6\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 22 Oct 2020 15:56:10 +0200 (CEST)", "from Q.local (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net\n\t[86.31.172.11])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 79A22A43;\n\tThu, 22 Oct 2020 15:56:09 +0200 (CEST)" ], "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=\"NO6Hv9DR\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1603374969;\n\tbh=/UwFBQMbTYwsBkPVdG7FRyJUA21BDFfVyGH/w41K6hA=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=NO6Hv9DR83Vi0rgcFZNerLil9ncFRxKxR177adAQV8AxnJQ69wi14V48sV2+DrGrR\n\tH5LFFKLT7iqoYwVdWu3zeblpLgHkODl+dbE4ZdcAQiOZfsJzkBAifNDgOOIUx5/2+f\n\tbArW4ysWSLJx3lT4I/VMAtzNzPeNndAtdbv8dbck=", "From": "Kieran Bingham <kieran.bingham@ideasonboard.com>", "To": "libcamera devel <libcamera-devel@lists.libcamera.org>", "Date": "Thu, 22 Oct 2020 14:56:01 +0100", "Message-Id": "<20201022135605.614240-2-kieran.bingham@ideasonboard.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20201022135605.614240-1-kieran.bingham@ideasonboard.com>", "References": "<20201022135605.614240-1-kieran.bingham@ideasonboard.com>", "MIME-Version": "1.0", "Subject": "[libcamera-devel] [PATCH 1/5] libcamera: Provide class.h", "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": "Provide a public header to define helpers for class definitions.\nThis initially implements macros to clearly define the deletion of\ncopy/move/assignment constructors/operators for classes to restrict\ntheir capabilities explicitly.\n\nSigned-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n---\n include/libcamera/class.h | 35 +++++++++++++++++++++++++++++++++++\n include/libcamera/meson.build | 1 +\n 2 files changed, 36 insertions(+)\n create mode 100644 include/libcamera/class.h", "diff": "diff --git a/include/libcamera/class.h b/include/libcamera/class.h\nnew file mode 100644\nindex 000000000000..adcfa8860957\n--- /dev/null\n+++ b/include/libcamera/class.h\n@@ -0,0 +1,35 @@\n+/* SPDX-License-Identifier: LGPL-2.1-or-later */\n+/*\n+ * Copyright (C) 2020, Google Inc.\n+ *\n+ * class.h - class helpers\n+ */\n+#ifndef __LIBCAMERA_CLASS_H__\n+#define __LIBCAMERA_CLASS_H__\n+\n+/**\n+ * \\brief Delete the copy constructor and assignment operator.\n+ */\n+#define DELETE_COPY_AND_ASSIGN(klass) \\\n+\t/* copy constructor. */ \\\n+\tklass(const klass &) = delete; \\\n+\t/* copy assignment operator. */ \\\n+\tklass &operator=(const klass &) = delete\n+\n+/**\n+ * \\brief Delete the move construtor and assignment operator.\n+ */\n+#define DELETE_MOVE_AND_ASSIGN(klass) \\\n+\t/* move constructor. */ \\\n+\tklass(klass &&) = delete; \\\n+\t/* move assignment operator. */ \\\n+\tklass &operator=(klass &&) = delete\n+\n+/**\n+ * \\brief Delete all copy and move constructors, and assignment operators.\n+ */\n+#define DELETE_COPY_MOVE_AND_ASSIGN(klass) \\\n+\tDELETE_COPY_AND_ASSIGN(klass); \\\n+\tDELETE_MOVE_AND_ASSIGN(klass)\n+\n+#endif /* __LIBCAMERA_CLASS_H__ */\ndiff --git a/include/libcamera/meson.build b/include/libcamera/meson.build\nindex 3d5fc70134ad..b3363a6f735b 100644\n--- a/include/libcamera/meson.build\n+++ b/include/libcamera/meson.build\n@@ -5,6 +5,7 @@ libcamera_public_headers = files([\n 'buffer.h',\n 'camera.h',\n 'camera_manager.h',\n+ 'class.h',\n 'controls.h',\n 'event_dispatcher.h',\n 'event_notifier.h',\n", "prefixes": [ "libcamera-devel", "1/5" ] }