diff options
author | Andrew Geissler <andrewg@us.ibm.com> | 2017-03-20 21:17:04 -0500 |
---|---|---|
committer | Andrew Geissler <andrewg@us.ibm.com> | 2017-05-09 12:49:07 -0500 |
commit | 1c1bd754ed2ea0fe0527bec39870e5fcbb859bc4 (patch) | |
tree | 1c9f2167ecf6d7a895c3300ecde6ac842ac6df74 /host-interface.cpp | |
parent | 62817fa92d7a728e2b4d045019776cab0809289f (diff) | |
download | phosphor-host-ipmid-1c1bd754ed2ea0fe0527bec39870e5fcbb859bc4.tar.gz phosphor-host-ipmid-1c1bd754ed2ea0fe0527bec39870e5fcbb859bc4.zip |
Support for putting entries onto queue
Change-Id: I766cdfcaef7d5d000a9e216bc3307ea12c9ce2f8
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
Diffstat (limited to 'host-interface.cpp')
-rw-r--r-- | host-interface.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
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 phosphor 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; } |