summaryrefslogtreecommitdiff
path: root/src/libcamera/include/v4l2_device.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcamera/include/v4l2_device.h')
-rw-r--r--src/libcamera/include/v4l2_device.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libcamera/include/v4l2_device.h b/src/libcamera/include/v4l2_device.h
index 75f23a05..55696046 100644
--- a/src/libcamera/include/v4l2_device.h
+++ b/src/libcamera/include/v4l2_device.h
@@ -7,18 +7,23 @@
#ifndef __LIBCAMERA_V4L2_DEVICE_H__
#define __LIBCAMERA_V4L2_DEVICE_H__
+#include <map>
#include <string>
#include "log.h"
namespace libcamera {
+class V4L2ControlInfo;
+
class V4L2Device : protected Loggable
{
public:
void close();
bool isOpen() const { return fd_ != -1; }
+ const V4L2ControlInfo *getControlInfo(unsigned int id) const;
+
const std::string &deviceNode() const { return deviceNode_; }
protected:
@@ -32,6 +37,9 @@ protected:
int fd() { return fd_; }
private:
+ void listControls();
+
+ std::map<unsigned int, V4L2ControlInfo> controls_;
std::string deviceNode_;
int fd_;
};