From 83e3300a2df2360b69760614084826793c64e769 Mon Sep 17 00:00:00 2001 From: Paul Elder Date: Wed, 5 Jun 2019 16:47:23 -0400 Subject: libcamera: ipa_module: add path getter Add a method to IPAModule to get the path of the IPA module shared object that the IPAModule was constructed from. Signed-off-by: Paul Elder Reviewed-by: Laurent Pinchart --- src/libcamera/ipa_module.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/libcamera/ipa_module.cpp') diff --git a/src/libcamera/ipa_module.cpp b/src/libcamera/ipa_module.cpp index 2663b9ef..58e8d1d8 100644 --- a/src/libcamera/ipa_module.cpp +++ b/src/libcamera/ipa_module.cpp @@ -321,6 +321,19 @@ const struct IPAModuleInfo &IPAModule::info() const return info_; } +/** + * \brief Retrieve the IPA module path + * + * The IPA module path is the file name and path of the IPA module shared + * object from which the IPA module was created. + * + * \return The IPA module path + */ +const std::string &IPAModule::path() const +{ + return libPath_; +} + /** * \brief Load the IPA implementation factory from the shared object * -- cgit v1.2.1