summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2021-08-10 16:56:51 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-10-25 09:56:00 +0100
commit42f5a750016840a0c1722d32d8975262932f12d6 (patch)
tree9e4ff5efbc71a13ec939a4cb066e29e43af4731c /include
parent1402152ad35017a817b1ead55e60ace9353efbdb (diff)
libcamera: camera: Create a CameraControlValidator
Create a Camera-specific CameraControlValidator for the Camera instance. This will allow requests to use a single validator instance without having to construct their own. Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/camera.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libcamera/internal/camera.h b/include/libcamera/internal/camera.h
index 1a08da0c..9f5adac1 100644
--- a/include/libcamera/internal/camera.h
+++ b/include/libcamera/internal/camera.h
@@ -19,6 +19,7 @@
namespace libcamera {
+class CameraControlValidator;
class PipelineHandler;
class Stream;
@@ -38,6 +39,8 @@ public:
uint32_t requestSequence_;
+ const CameraControlValidator *validator() const { return validator_.get(); }
+
private:
enum State {
CameraAvailable,
@@ -64,6 +67,8 @@ private:
bool disconnected_;
std::atomic<State> state_;
+
+ std::unique_ptr<CameraControlValidator> validator_;
};
} /* namespace libcamera */