Loading...
Searching...
No Matches
control_validator.h
Go to the documentation of this file.
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2019, Google Inc.
*
* Control validator
*/
#pragma once
#include <string>
namespace libcamera {
class ControlId;
class ControlValidator
{
public:
virtual ~ControlValidator() = default;
virtual const std::string &name() const = 0;
virtual bool validate(unsigned int id) const = 0;
};
} /* namespace libcamera */
libcamera::ControlId
Control static metadata.
Definition controls.h:251
libcamera::ControlValidator
Interface for the control validator.
Definition control_validator.h:17
libcamera::ControlValidator::validate
virtual bool validate(unsigned int id) const =0
Validate a control.
libcamera::ControlValidator::name
virtual const std::string & name() const =0
Retrieve the name of the object associated with the validator.
libcamera
Top-level libcamera namespace.
Definition backtrace.h:17