Send the SMS attention to host when Execute called
Change-Id: Id523470fcabf59cf2bda592cf1fe687ac44c3328
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
diff --git a/host-interface.hpp b/host-interface.hpp
index 56d19d1..a3b7efa 100644
--- a/host-interface.hpp
+++ b/host-interface.hpp
@@ -26,7 +26,8 @@
const char* objPath) :
sdbusplus::server::object::object<
sdbusplus::xyz::openbmc_project::Control::server::Host>(
- bus, objPath)
+ bus, objPath),
+ bus(bus)
{}
/** @brief Send input command to host
@@ -37,6 +38,11 @@
* @param[in] command - Input command to execute
*/
void execute(Command command) override;
+
+ private:
+
+ /** @brief Persistent sdbusplus DBus bus connection. */
+ sdbusplus::bus::bus& bus;
};
} // namespace host