summaryrefslogtreecommitdiffstats
path: root/host-cmd-manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host-cmd-manager.cpp')
-rw-r--r--host-cmd-manager.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/host-cmd-manager.cpp b/host-cmd-manager.cpp
index 329e606..500e57d 100644
--- a/host-cmd-manager.cpp
+++ b/host-cmd-manager.cpp
@@ -6,6 +6,8 @@
#include <utils.hpp>
#include <config.h>
#include <host-cmd-manager.hpp>
+#include <timer.hpp>
+
namespace phosphor
{
namespace host
@@ -22,6 +24,13 @@ using namespace phosphor::logging;
using InternalFailure = sdbusplus::xyz::openbmc_project::Common::
Error::InternalFailure;
+Manager::Manager(sdbusplus::bus::bus& bus, sd_event* event) :
+ bus(bus),
+ timer(event, std::bind(&Manager::hostTimeout, this))
+{
+ // Nothing to do here.
+}
+
// Called as part of READ_MSG_DATA command
IpmiCmdData Manager::getNextCommand()
{
OpenPOWER on IntegriCloud