summaryrefslogtreecommitdiff
path: root/src/libcamera/include/v4l2_controls.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcamera/include/v4l2_controls.h')
-rw-r--r--src/libcamera/include/v4l2_controls.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/libcamera/include/v4l2_controls.h b/src/libcamera/include/v4l2_controls.h
index 949ca21c..8990e755 100644
--- a/src/libcamera/include/v4l2_controls.h
+++ b/src/libcamera/include/v4l2_controls.h
@@ -43,7 +43,21 @@ private:
ControlRange range_;
};
-using V4L2ControlInfoMap = std::map<unsigned int, V4L2ControlInfo>;
+class V4L2ControlInfoMap : private std::map<unsigned int, V4L2ControlInfo>
+{
+public:
+ V4L2ControlInfoMap &operator=(std::map<unsigned int, V4L2ControlInfo> &&info);
+
+ using std::map<unsigned int, V4L2ControlInfo>::begin;
+ using std::map<unsigned int, V4L2ControlInfo>::cbegin;
+ using std::map<unsigned int, V4L2ControlInfo>::end;
+ using std::map<unsigned int, V4L2ControlInfo>::cend;
+ using std::map<unsigned int, V4L2ControlInfo>::at;
+ using std::map<unsigned int, V4L2ControlInfo>::empty;
+ using std::map<unsigned int, V4L2ControlInfo>::size;
+ using std::map<unsigned int, V4L2ControlInfo>::count;
+ using std::map<unsigned int, V4L2ControlInfo>::find;
+};
class V4L2Control
{