From 437ca585dfeda7e5a38d217b949c327fc25e2495 Mon Sep 17 00:00:00 2001 From: Stefan Klug Date: Mon, 16 Dec 2024 16:40:56 +0100 Subject: libcamera: camera: Add a const version of the pipe() function Allow access to the pipeline handler on a const instance of Camera::Private. Signed-off-by: Stefan Klug Reviewed-by: Jacopo Mondi Reviewed-by: Paul Elder --- include/libcamera/internal/camera.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/libcamera/internal/camera.h b/include/libcamera/internal/camera.h index 0add0428..2bb00bbc 100644 --- a/include/libcamera/internal/camera.h +++ b/include/libcamera/internal/camera.h @@ -32,6 +32,7 @@ public: ~Private(); PipelineHandler *pipe() { return pipe_.get(); } + const PipelineHandler *pipe() const { return pipe_.get(); } std::list queuedRequests_; ControlInfoMap controlInfo_; -- cgit v1.2.1