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/include/ipa_module.h | 1 + src/libcamera/ipa_module.cpp | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/src/libcamera/include/ipa_module.h b/src/libcamera/include/ipa_module.h index fec42371..b88ae5d2 100644 --- a/src/libcamera/include/ipa_module.h +++ b/src/libcamera/include/ipa_module.h @@ -26,6 +26,7 @@ public: bool isValid() const; const struct IPAModuleInfo &info() const; + const std::string &path() const; bool load(); 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