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:
parent
fd71913d70
commit
437ca585df
2 changed files with 6 additions and 0 deletions
|
@ -32,6 +32,7 @@ public:
|
|||
~Private();
|
||||
|
||||
PipelineHandler *pipe() { return pipe_.get(); }
|
||||
const PipelineHandler *pipe() const { return pipe_.get(); }
|
||||
|
||||
std::list<Request *> queuedRequests_;
|
||||
ControlInfoMap controlInfo_;
|
||||
|
|
|
@ -603,6 +603,11 @@ Camera::Private::~Private()
|
|||
* \return The pipeline handler that created this camera
|
||||
*/
|
||||
|
||||
/**
|
||||
* \fn Camera::Private::pipe() const
|
||||
* \copydoc Camera::Private::pipe()
|
||||
*/
|
||||
|
||||
/**
|
||||
* \fn Camera::Private::validator()
|
||||
* \brief Retrieve the control validator related to this camera
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue