libcamera  v0.3.0
Supporting cameras in Linux since 2019
control_validator.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 /*
3  * Copyright (C) 2019, Google Inc.
4  *
5  * Control validator
6  */
7 
8 #pragma once
9 
10 #include <string>
11 
12 namespace libcamera {
13 
14 class ControlId;
15 
17 {
18 public:
19  virtual ~ControlValidator() = default;
20 
21  virtual const std::string &name() const = 0;
22  virtual bool validate(unsigned int id) const = 0;
23 };
24 
25 } /* namespace libcamera */
Top-level libcamera namespace.
Definition: backtrace.h:17
Interface for the control validator.
Definition: control_validator.h:16
virtual const std::string & name() const =0
Retrieve the name of the object associated with the validator.
virtual bool validate(unsigned int id) const =0
Validate a control.