Add location interface
Tested:
$busctl introspect xyz.openbmc_project.eStoraged \
/xyz/openbmc_project/inventory/storage/mmcblk0
...
xyz.openbmc_project.Inventory.Decorator.LocationCode interface
.LocationCode property s "Embedded" emits-change
...
Signed-off-by: John Edward Broadbent <jebr@google.com>
Change-Id: Ib1c2177541de193c5930238958201ad26b38e7d2
diff --git a/include/estoraged.hpp b/include/estoraged.hpp
index 2db260f..bf5e6c8 100644
--- a/include/estoraged.hpp
+++ b/include/estoraged.hpp
@@ -132,6 +132,9 @@
/** @brief D-Bus interface for the physical drive. */
std::shared_ptr<sdbusplus::asio::dbus_interface> driveInterface;
+ /** @brief D-Bus interface for the location of the drive. */
+ std::shared_ptr<sdbusplus::asio::dbus_interface> locationInterface;
+
/** @brief Association between chassis and drive. */
std::shared_ptr<sdbusplus::asio::dbus_interface> association;