mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 07:19:45 +03:00
Remove the verbose #ifndef/#define/#endif pattern for maintaining header idempotency, and replace it with a simple #pragma once. This simplifies the headers, and prevents redundant changes when header files get moved. Tracepoints.h.in is not modified to use the pragma as it requires self-inclusion. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
28 lines
501 B
C++
28 lines
501 B
C++
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
/*
|
|
* Copyright (C) 2019, Google Inc.
|
|
*
|
|
* camera_controls.h - Camera controls
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "libcamera/internal/control_validator.h"
|
|
|
|
namespace libcamera {
|
|
|
|
class Camera;
|
|
|
|
class CameraControlValidator final : public ControlValidator
|
|
{
|
|
public:
|
|
CameraControlValidator(Camera *camera);
|
|
|
|
const std::string &name() const override;
|
|
bool validate(unsigned int id) const override;
|
|
|
|
private:
|
|
Camera *camera_;
|
|
};
|
|
|
|
} /* namespace libcamera */
|