summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/controls.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/libcamera/controls.h b/include/libcamera/controls.h
index 42e6df7e..f24dc764 100644
--- a/include/libcamera/controls.h
+++ b/include/libcamera/controls.h
@@ -112,6 +112,16 @@ public:
std::string toString() const;
+ bool operator==(const ControlRange &other) const
+ {
+ return min_ == other.min_ && max_ == other.max_;
+ }
+
+ bool operator!=(const ControlRange &other) const
+ {
+ return !(*this == other);
+ }
+
private:
ControlValue min_;
ControlValue max_;