libcamera: device_enumerator: add factory for DeviceEnumerators
Provide a factory for DeviceEnumerator objects. Depending on which libraries are available there will be different ways to enumerate information in the system. This factory hides this from the rest of the library. Currently udev enumeration is the only supported implementation, a sysfs implementation is another method that surely will be added in the future. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
@@ -56,6 +56,8 @@ private:
|
||||
class DeviceEnumerator
|
||||
{
|
||||
public:
|
||||
static DeviceEnumerator *create();
|
||||
|
||||
virtual ~DeviceEnumerator();
|
||||
|
||||
virtual int init() = 0;
|
||||
|
||||
Reference in New Issue
Block a user