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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user