From patchwork Wed Jun 5 22:18:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 1363 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 59DCE64608 for ; Thu, 6 Jun 2019 00:18:29 +0200 (CEST) Received: from localhost.localdomain (unknown [96.44.9.117]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A806984; Thu, 6 Jun 2019 00:18:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1559773109; bh=so+lnPNN9ud5ole5bqrKe2TboIM9D+ocCQzrji9VjnU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ONwaOhXRuuMkFbwnC4b9tA5GdCg6DKECT/oXdmVJc+mS0YevEoyNuDFGUncJjdJDV 47r/ijqiaP+v/ZQQvo3kEDFUeW3B1jxsg3hOIktX7J0H6UqHB0gOIbHQKNiLhdn957 JbNMRH+3B6jLlu4qB4tzqY29Ydjmesr/yrgCbLRQ= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Wed, 5 Jun 2019 18:18:09 -0400 Message-Id: <20190605221817.966-3-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190605221817.966-1-paul.elder@ideasonboard.com> References: <20190605221817.966-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [RFC PATCH 02/10] libcamera: ipa_module: add path getter X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jun 2019 22:18:29 -0000 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 fec4237..f6904fa 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 char *path() const; bool load(); diff --git a/src/libcamera/ipa_module.cpp b/src/libcamera/ipa_module.cpp index 2663b9e..e1d4b27 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 char *IPAModule::path() const +{ + return libPath_.c_str(); +} + /** * \brief Load the IPA implementation factory from the shared object *