summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2019-10-23 09:40:27 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-11-20 21:47:41 +0200
commitcdc68bf7f775538bcc58ff85a14cf89fc6c8668e (patch)
tree7430a549dfbf080f497299cc000fabbc75361a3a /include
parent113cfb1e0821d638b66b3fb8d85c5025b2a089c5 (diff)
libcamera: controls: Store reference to the InfoMap
Store a reference to the ControlInfoMap used to create a ControlList and provide an operation to retrieve it. This will be used to implement serialization of ControlList. Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/controls.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libcamera/controls.h b/include/libcamera/controls.h
index d692e088..b1b73367 100644
--- a/include/libcamera/controls.h
+++ b/include/libcamera/controls.h
@@ -233,12 +233,16 @@ public:
const ControlValue &get(unsigned int id) const;
void set(unsigned int id, const ControlValue &value);
+ const ControlInfoMap *infoMap() const { return infoMap_; }
+
private:
const ControlValue *find(unsigned int id) const;
ControlValue *find(unsigned int id);
ControlValidator *validator_;
const ControlIdMap *idmap_;
+ const ControlInfoMap *infoMap_;
+
ControlListMap controls_;
};