From patchwork Tue Dec 2 13:58:16 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: 25335 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 EF5EBC3260 for ; Tue, 2 Dec 2025 13:58:26 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 39C6760D24; Tue, 2 Dec 2025 14:58:25 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="Kvot+B48"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id BD5E960C7C for ; Tue, 2 Dec 2025 14:58:21 +0100 (CET) Received: from pb-laptop.local (185.182.214.104.nat.pool.zt.hu [185.182.214.104]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A8DC216A for ; Tue, 2 Dec 2025 14:56:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1764683767; bh=sGC7fQpMh63mykn6Z0VQeS5+xQrRB/fJuVWnDLabkIo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Kvot+B48e6nmXVxG9+PzyXZiFqn65xoS0KEpQBAGcOCWJzEiq+1jwMbBT/dYCmwfO I8bRRM7NE/UYpKTrFayfYHYyOIhP0GG8X+gjiDAZOBt7LQBCp+laTkZS31FIpxEmqK CATmvHsdCNgjSK9Cpu4eZpUXN1S3k8xEcUX9ASOg= From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= To: libcamera-devel@lists.libcamera.org Subject: [RFC PATCH v1 2/3] libcamera: device_enumerator_udev: Disable copy/move Date: Tue, 2 Dec 2025 14:58:16 +0100 Message-ID: <20251202135817.1607250-2-barnabas.pocze@ideasonboard.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251202135817.1607250-1-barnabas.pocze@ideasonboard.com> References: <20251202135817.1607250-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 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);