oem-ibm: Adding entity path correction function
This commit introduces enhancements to rectify entity paths over DBus.
Formerly, the conventional DBus path involved appending an instance
number, such as 'system' becoming 'system1', 'motherboard' becoming
'motherboard1', and 'chassis' becoming 'chassis1'. This function is
designed to align with IBM's specific use case, ensuring the numbering
system adheres appropriately.
Testing:
Unit tests passed
Change-Id: I671f8486078054b44110ffa2cbf169c63d164cf1
Signed-off-by: Kamalkumar Patel <kamalkumar.patel@ibm.com>
diff --git a/libpldmresponder/oem_handler.hpp b/libpldmresponder/oem_handler.hpp
index 542f823..2bcf36f 100644
--- a/libpldmresponder/oem_handler.hpp
+++ b/libpldmresponder/oem_handler.hpp
@@ -90,6 +90,9 @@
/** @brief Interface to check the BMC state */
virtual int checkBMCState() = 0;
+ /** @brief update the dbus object paths */
+ virtual void updateOemDbusPaths(std::string& dbusPath) = 0;
+
/** @brief Interface to fetch the last BMC record from the PDR repository
*
* @param[in] repo - pointer to BMC's primary PDR repo