Support for putting entries onto queue
Change-Id: I766cdfcaef7d5d000a9e216bc3307ea12c9ce2f8
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
diff --git a/host-interface.cpp b/host-interface.cpp
index 5c286eb..05539b9 100644
--- a/host-interface.cpp
+++ b/host-interface.cpp
@@ -1,3 +1,5 @@
+#include <queue>
+#include <phosphor-logging/log.hpp>
#include "host-interface.hpp"
namespace phosphor
@@ -5,9 +7,19 @@
namespace host
{
-void Host::execute(Command command)
+using namespace phosphor::logging;
+
+// When you see base:: you know we're referencing our base class
+namespace base = sdbusplus::xyz::openbmc_project::Control::server;
+
+std::queue<base::Host::Command> workQueue{};
+
+void Host::execute(base::Host::Command command)
{
- // Future commits to build on
+ log<level::INFO>("Pushing cmd on to queue",
+ entry("CONTROL_HOST_CMD=%s",
+ convertForMessage(command)));
+ workQueue.push(command);
return;
}