libcamera: device_enumerator_udev: Disable copy/move

The default implementations generated by the compiler are not appropriate.
So disable them.

Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
This commit is contained in:
Barnabás Pőcze
2025-12-02 14:14:20 +01:00
parent c6a8808eba
commit bb021aa549

View File

@@ -14,6 +14,8 @@
#include <string>
#include <sys/types.h>
#include <libcamera/base/class.h>
#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);