summaryrefslogtreecommitdiff
path: root/include/ipa
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-10-26 23:02:22 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-11-20 21:47:58 +0200
commit5f90d52d6e36c7d1c77717d026d0e7413d597d5e (patch)
treee0b29515fdb6497bf8a84a0e21316e03fdd360b6 /include/ipa
parentc0b437fd6cf7ca2e91eb749a25539f217722c66e (diff)
ipa: Pass ControlInfoMap references to IPAInterface::configure()
The IPAInterface::configure() operation receives a map of ControlInfoMap instances. Pass const references instead to avoid copies when not required (the callee can still make manual copies), and to allow for the future serialization layer to keep references to the original object. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'include/ipa')
-rw-r--r--include/ipa/ipa_interface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ipa/ipa_interface.h b/include/ipa/ipa_interface.h
index 8fd658af..35dc4b4e 100644
--- a/include/ipa/ipa_interface.h
+++ b/include/ipa/ipa_interface.h
@@ -43,7 +43,7 @@ public:
virtual int init() = 0;
virtual void configure(const std::map<unsigned int, IPAStream> &streamConfig,
- const std::map<unsigned int, ControlInfoMap> &entityControls) = 0;
+ const std::map<unsigned int, const ControlInfoMap &> &entityControls) = 0;
virtual void mapBuffers(const std::vector<IPABuffer> &buffers) = 0;
virtual void unmapBuffers(const std::vector<unsigned int> &ids) = 0;