25 void add(
const std::string &entity);
31 std::vector<std::string> entities_;
37 static std::unique_ptr<DeviceEnumerator> create();
41 virtual int init() = 0;
42 virtual int enumerate() = 0;
44 std::shared_ptr<MediaDevice> search(
const DeviceMatch &dm);
49 std::unique_ptr<MediaDevice> createDevice(
const std::string &deviceNode);
50 void addDevice(std::unique_ptr<MediaDevice> media);
51 void removeDevice(
const std::string &deviceNode);
54 std::vector<std::shared_ptr<MediaDevice>> devices_;
Top-level libcamera namespace.
Definition: backtrace.h:17
bool match(const MediaDevice *device) const
Compare a search pattern with a media device.
Definition: device_enumerator.cpp:94
Signal & slot implementation.
Description of a media device search pattern.
Definition: device_enumerator.h:20
Enumerate, store and search media devices.
Definition: device_enumerator.h:34
Generic signal and slot communication mechanism.
Definition: object.h:20
DeviceMatch(const std::string &driver)
Construct a media device search pattern.
Definition: device_enumerator.cpp:70
void add(const std::string &entity)
Add a media entity name to the search pattern.
Definition: device_enumerator.cpp:79
Signal devicesAdded
Notify of new media devices being found.
Definition: device_enumerator.h:46