#include <queue>
#include <phosphor-logging/log.hpp>
#include "host-interface.hpp"

namespace phosphor
{
namespace host
{

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)
{
    log<level::INFO>("Pushing cmd on to queue",
            entry("CONTROL_HOST_CMD=%s",
                  convertForMessage(command)));
    workQueue.push(command);
    return;
}

} // namespace host
} // namepsace phosphor

#include "host-interface.hpp"

namespace phosphor
{
namespace host
{

void Host::execute(Command command)
{
    // Future commits to build on
    return;
}

} // namespace host
} // namepsace phosphor

--- 
+++ 
@@ -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;
 }
 
Support for putting entries onto queue

Change-Id: I766cdfcaef7d5d000a9e216bc3307ea12c9ce2f8
Signed-off-by: Andrew Geissler <c46de238cd554860f0bd4010b1729f1323facd9c@us.ibm.com>
