From patchwork Mon Dec 8 11:00:34 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= X-Patchwork-Id: 25387 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 37115BDDFC for ; Mon, 8 Dec 2025 11:00:44 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 0C6B5613F7; Mon, 8 Dec 2025 12:00:43 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="pwXc0AZG"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6D58E613CB for ; Mon, 8 Dec 2025 12:00:40 +0100 (CET) Received: from pb-laptop.local (185.221.142.68.nat.pool.zt.hu [185.221.142.68]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id E82E9316; Mon, 8 Dec 2025 11:58:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1765191501; bh=vlBc1qomo9o4cxv2PWDUw4PNI1OIU4+NIHXkZfK5Q/I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pwXc0AZGCrhz454lPskr1d2Viwupnfmc9BEYzsWVtj4JRaSIoStAX84yD6RqT0heG x64eKQht4ZpS+WE/pLtNpR0frz6moVr1yktEkA9iwmPusr9YVftQTZ0t7fvPrqWvvw a/OVO8PMA1E4BCU2YaCnL4g2VwxfO8PpSKXnhgos= From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= To: libcamera-devel@lists.libcamera.org Cc: Kieran Bingham Subject: [RFC PATCH v2 2/3] libcamera: device_enumerator_udev: Disable copy/move Date: Mon, 8 Dec 2025 12:00:34 +0100 Message-ID: <20251208110035.248881-2-barnabas.pocze@ideasonboard.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251208110035.248881-1-barnabas.pocze@ideasonboard.com> References: <20251208110035.248881-1-barnabas.pocze@ideasonboard.com> MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The default implementations generated by the compiler are not appropriate. So disable them. Signed-off-by: Barnabás Pőcze Reviewed-by: Kieran Bingham --- include/libcamera/internal/device_enumerator_udev.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/libcamera/internal/device_enumerator_udev.h b/include/libcamera/internal/device_enumerator_udev.h index fb0005921a..c2f7154b6b 100644 --- a/include/libcamera/internal/device_enumerator_udev.h +++ b/include/libcamera/internal/device_enumerator_udev.h @@ -14,6 +14,8 @@ #include #include +#include + #include "libcamera/internal/device_enumerator.h" struct udev; @@ -54,6 +56,8 @@ private: DependencyMap deps_; }; + LIBCAMERA_DISABLE_COPY_AND_MOVE(DeviceEnumeratorUdev) + int addUdevDevice(struct udev_device *dev); int populateMediaDevice(MediaDevice *media, DependencyMap *deps); std::string lookupDeviceNode(dev_t devnum);