diff options
Diffstat (limited to 'src/libcamera/include/device_enumerator_sysfs.h')
-rw-r--r-- | src/libcamera/include/device_enumerator_sysfs.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/libcamera/include/device_enumerator_sysfs.h b/src/libcamera/include/device_enumerator_sysfs.h new file mode 100644 index 00000000..8d3adc91 --- /dev/null +++ b/src/libcamera/include/device_enumerator_sysfs.h @@ -0,0 +1,28 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +/* + * Copyright (C) 2019, Google Inc. + * + * device_enumerator_sysfs.h - sysfs-based device enumerator + */ +#ifndef __LIBCAMERA_DEVICE_ENUMERATOR_SYSFS_H__ +#define __LIBCAMERA_DEVICE_ENUMERATOR_SYSFS_H__ + +#include <string> + +#include "device_enumerator.h" + +namespace libcamera { + +class DeviceEnumeratorSysfs final : public DeviceEnumerator +{ +public: + int init(); + int enumerate(); + +private: + std::string lookupDeviceNode(int major, int minor); +}; + +} /* namespace libcamera */ + +#endif /* __LIBCAMERA_DEVICE_ENUMERATOR_SYSFS_H__ */ |