summaryrefslogtreecommitdiff
path: root/include/libcamera/controls.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-09-28 00:27:33 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-10-04 19:33:08 +0300
commitdd37ef784e7b4a8125225177bf74eef04b8efd83 (patch)
treeb270db2787d69e3139d22787b4650c543c753dc2 /include/libcamera/controls.h
parent224ef9776ac5be51f984780c761713027f2c6102 (diff)
libcamera: controls: Use explicit 32-bit integer types
Make the control API more explicit when dealing with integer controls by specifying the size. We already do so for 64-bit integers, using int64_t and ControlTypeInteger64, do the same for 32-bit integers. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'include/libcamera/controls.h')
-rw-r--r--include/libcamera/controls.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libcamera/controls.h b/include/libcamera/controls.h
index 0886370f..a3089064 100644
--- a/include/libcamera/controls.h
+++ b/include/libcamera/controls.h
@@ -21,7 +21,7 @@ class Camera;
enum ControlType {
ControlTypeNone,
ControlTypeBool,
- ControlTypeInteger,
+ ControlTypeInteger32,
ControlTypeInteger64,
};
@@ -30,7 +30,7 @@ class ControlValue
public:
ControlValue();
ControlValue(bool value);
- ControlValue(int value);
+ ControlValue(int32_t value);
ControlValue(int64_t value);
ControlType type() const { return type_; };
@@ -48,7 +48,7 @@ private:
union {
bool bool_;
- int integer_;
+ int32_t integer32_;
int64_t integer64_;
};
};