summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVernon Mauery <vernon.mauery@linux.intel.com>2019-02-27 10:05:14 -0800
committerVernon Mauery <vernon.mauery@linux.intel.com>2019-02-27 10:18:45 -0800
commitfe6c655860641696ddad96f24de92001ab3459ff (patch)
tree6cc8c6a1d7ff3f8e94d287a07a9f64d2dd09e679
parent41c79e629898ddac7d93330a3afe67367603c3c8 (diff)
downloadphosphor-host-ipmid-fe6c655860641696ddad96f24de92001ab3459ff.tar.gz
phosphor-host-ipmid-fe6c655860641696ddad96f24de92001ab3459ff.zip
Add back an interface used by an external provider
The move to the new API removed the ipmid_get_sdbus_plus_handler interface because it looked like it was self-contained in the executable, not realizing it was needed by an external provider. Change-Id: I75bb898294cc59cae7d291f7a6a6ed1e61d62903 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
-rw-r--r--include/ipmid-host/cmd.hpp4
-rw-r--r--systemintfcmds.cpp6
2 files changed, 9 insertions, 1 deletions
diff --git a/include/ipmid-host/cmd.hpp b/include/ipmid-host/cmd.hpp
index e46c485..ca73bd2 100644
--- a/include/ipmid-host/cmd.hpp
+++ b/include/ipmid-host/cmd.hpp
@@ -1,6 +1,8 @@
#include <ipmid-host/cmd-utils.hpp>
#include <memory>
-#include <sdbusplus/bus.hpp>
+#include <sdbusplus/asio/connection.hpp>
// Global Host Bound Command manager
extern void ipmid_send_cmd_to_host(phosphor::host::command::CommandHandler&&);
+extern std::unique_ptr<sdbusplus::asio::connection>&
+ ipmid_get_sdbus_plus_handler();
diff --git a/systemintfcmds.cpp b/systemintfcmds.cpp
index 564cc38..4964800 100644
--- a/systemintfcmds.cpp
+++ b/systemintfcmds.cpp
@@ -113,6 +113,12 @@ std::unique_ptr<sdbusplus::asio::connection> sdbusp
__attribute__((init_priority(101)));
} // namespace
+// this is used by openpower-host-ipmi-oem
+std::unique_ptr<sdbusplus::asio::connection>& ipmid_get_sdbus_plus_handler()
+{
+ return sdbusp;
+}
+
#include <unistd.h>
void register_netfn_app_functions()
{
OpenPOWER on IntegriCloud