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 <stefan.klug@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
This commit is contained in:
Stefan Klug 2024-12-16 16:40:56 +01:00
parent fd71913d70
commit 437ca585df
2 changed files with 6 additions and 0 deletions

View file

@ -32,6 +32,7 @@ public:
~Private(); ~Private();
PipelineHandler *pipe() { return pipe_.get(); } PipelineHandler *pipe() { return pipe_.get(); }
const PipelineHandler *pipe() const { return pipe_.get(); }
std::list<Request *> queuedRequests_; std::list<Request *> queuedRequests_;
ControlInfoMap controlInfo_; ControlInfoMap controlInfo_;

View file

@ -603,6 +603,11 @@ Camera::Private::~Private()
* \return The pipeline handler that created this camera * \return The pipeline handler that created this camera
*/ */
/**
* \fn Camera::Private::pipe() const
* \copydoc Camera::Private::pipe()
*/
/** /**
* \fn Camera::Private::validator() * \fn Camera::Private::validator()
* \brief Retrieve the control validator related to this camera * \brief Retrieve the control validator related to this camera