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>
This commit is contained in:
parent
6d492c2d75
commit
81493f36e1
1 changed files with 4 additions and 5 deletions
|
@ -59,16 +59,15 @@ private:
|
||||||
class ControlId
|
class ControlId
|
||||||
{
|
{
|
||||||
public:
|
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)
|
ControlId(unsigned int id, const std::string &name, ControlType type)
|
||||||
: id_(id), name_(name), type_(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:
|
private:
|
||||||
ControlId &operator=(const ControlId &) = delete;
|
ControlId &operator=(const ControlId &) = delete;
|
||||||
ControlId(const ControlId &) = delete;
|
ControlId(const ControlId &) = delete;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue