@@ -40,6 +40,7 @@ public:
~Request();
ControlList &controls() { return controls_; }
+ const ControlList &controls() const { return controls_; }
const std::map<Stream *, Buffer *> &buffers() const { return bufferMap_; }
int addBuffer(std::unique_ptr<Buffer> buffer);
Buffer *findBuffer(Stream *stream) const;
@@ -84,6 +84,11 @@ Request::~Request()
* \return A reference to the ControlList in this request
*/
+/**
+ * \fn Request::controls() const
+ * \sa Request::controls()
+ */
+
/**
* \fn Request::buffers()
* \brief Retrieve the request's streams to buffers map
Allow the controls in a Request to be examined from a const environment. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> --- include/libcamera/request.h | 1 + src/libcamera/request.cpp | 5 +++++ 2 files changed, 6 insertions(+)