summaryrefslogtreecommitdiffstats
path: root/ipmid.cpp
diff options
context:
space:
mode:
authorPeter Hanson <peterh@google.com>2017-06-07 17:40:45 -0700
committerVernon Mauery <vernon.mauery@linux.intel.com>2018-07-25 17:31:48 +0000
commit4a58985ce0cfb24bc0eb8678a4aa9a0ac42ba524 (patch)
treec267c333630f61e249a1f9fcc4144d8438241d75 /ipmid.cpp
parent15309efc2c1cebadbabdb0ef5f74a38fb8b78cfd (diff)
downloadphosphor-host-ipmid-4a58985ce0cfb24bc0eb8678a4aa9a0ac42ba524.tar.gz
phosphor-host-ipmid-4a58985ce0cfb24bc0eb8678a4aa9a0ac42ba524.zip
Add OemRouter facility.
OemRouter adds a facility to register OEM Group Message handlers, then dispatch matching messages to the registered handler. Added as a core source so that any dynamic provider can register its messages without requiring any specific load order. Includes code fixes for x86 portability. Change-Id: I47b8fe7873e3c7fdf35a00d3c8a7e17d30c398c4 Signed-off-by: Peter Hanson <peterh@google.com> Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'ipmid.cpp')
-rw-r--r--ipmid.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipmid.cpp b/ipmid.cpp
index 3d7c663..f664488 100644
--- a/ipmid.cpp
+++ b/ipmid.cpp
@@ -27,6 +27,7 @@
#include <host-cmd-manager.hpp>
#include <host-ipmid/ipmid-host-cmd.hpp>
#include <timer.hpp>
+#include "host-ipmid/oemrouter.hpp"
using namespace phosphor::logging;
namespace sdbusRule = sdbusplus::bus::match::rules;
@@ -616,6 +617,9 @@ int main(int argc, char *argv[])
cmdManager = std::make_unique<phosphor::host::command::Manager>(
*sdbusp, events);
+ // Activate OemRouter.
+ oem::mutableRouter()->activate();
+
// Register all the handlers that provider implementation to IPMI commands.
ipmi_register_callback_handlers(HOST_IPMI_LIB_PATH);
OpenPOWER on IntegriCloud