summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2019-10-22 01:50:53 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-11-20 21:47:39 +0200
commit81493f36e19a02d80517e88bc1e8fc6a492e7fd5 (patch)
treee9288109eced58d0010a6d47f21e1cb4c65fd6d9
parent6d492c2d758f7ab958f9d4afe1b157b59bb41c34 (diff)
libcamera: controls: Make ControlId constructor public
In order to be able to create a ControlId from serialized data, make its constructor public. 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>
-rw-r--r--include/libcamera/controls.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/libcamera/controls.h b/include/libcamera/controls.h
index 1468326d..a0379d52 100644
--- a/include/libcamera/controls.h
+++ b/include/libcamera/controls.h
@@ -59,16 +59,15 @@ private:
class ControlId
{
public:
- unsigned int id() const { return id_; }
- const std::string &name() const { return name_; }
- ControlType type() const { return type_; }
-
-protected:
ControlId(unsigned int id, const std::string &name, ControlType type)
: id_(id), name_(name), type_(type)
{
}
+ unsigned int id() const { return id_; }
+ const std::string &name() const { return name_; }
+ ControlType type() const { return type_; }
+
private:
ControlId &operator=(const ControlId &) = delete;
ControlId(const ControlId &) = delete;