summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>2023-08-07 10:42:03 +0200
committerJacopo Mondi <jacopo.mondi@ideasonboard.com>2023-08-07 10:42:03 +0200
commit796adbe28e3c28547947eebf575dd55af5d7dcf2 (patch)
tree505906b39c96c82d04d0e47d70485b098aab3b11 /include
parent2f3565efb5377768e3c2e1ef85eec99668f485de (diff)
libcamera: device_enumerator: Prepare for more device types
Modify the existing device_enumerator implementation and documentation to prepare to support enumeration and matching of more device types than MediaDevice instances. Move all media device related types and function to use the "mediaDevice" name in place of a more generic "device" and modify the derived sysfs and udev based derived classes accordingly. Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/device_enumerator.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/libcamera/internal/device_enumerator.h b/include/libcamera/internal/device_enumerator.h
index 2afb9fa0..8df6a3e2 100644
--- a/include/libcamera/internal/device_enumerator.h
+++ b/include/libcamera/internal/device_enumerator.h
@@ -34,12 +34,12 @@ public:
Signal<> devicesAdded;
protected:
- std::unique_ptr<MediaDevice> createDevice(const std::string &deviceNode);
- void addDevice(std::unique_ptr<MediaDevice> media);
- void removeDevice(const std::string &deviceNode);
+ std::unique_ptr<MediaDevice> createMediaDevice(const std::string &deviceNode);
+ void addMediaDevice(std::unique_ptr<MediaDevice> media);
+ void removeMediaDevice(const std::string &deviceNode);
private:
- std::vector<std::shared_ptr<MediaDevice>> devices_;
+ std::vector<std::shared_ptr<MediaDevice>> mediaDevices_;
};
} /* namespace libcamera */