libcamera v0.1.0+127-8e215127-dirty (2023-12-02T01:06:12+00:00)
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.h - Control validator
6 */
7
8#pragma once
9
10#include <string>
11
12namespace libcamera {
13
14class ControlId;
15
17{
18public:
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 */
Interface for the control validator.
Definition: control_validator.h:17
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.
Top-level libcamera namespace.
Definition: backtrace.h:17