netipmid: move to sdbusplus::asio from sdbusplus
To be able to support asynchronous dbus calls, the main bus object
should be an sdbusplus::asio::connection.
Change-Id: Ib7d3474eb32505d2326f0d6db9566528a58ccd03
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
diff --git a/main.cpp b/main.cpp
index 04f3d44..27661c1 100644
--- a/main.cpp
+++ b/main.cpp
@@ -36,7 +36,7 @@
sd_bus* bus = nullptr;
sd_event* events = nullptr;
-std::shared_ptr<sdbusplus::bus::bus> sdbusp;
+std::shared_ptr<sdbusplus::asio::connection> sdbusp;
/*
* @brief Required by apphandler IPMI Provider Library
@@ -49,7 +49,7 @@
/*
* @brief mechanism to get at sdbusplus object
*/
-std::shared_ptr<sdbusplus::bus::bus> getSdBus()
+std::shared_ptr<sdbusplus::asio::connection> getSdBus()
{
return sdbusp;
}
diff --git a/main.hpp b/main.hpp
index 5639342..6aa3a3f 100644
--- a/main.hpp
+++ b/main.hpp
@@ -5,7 +5,7 @@
#include "sol/sol_manager.hpp"
#include <command_table.hpp>
-#include <sdbusplus/bus.hpp>
+#include <sdbusplus/asio/connection.hpp>
#include <sessions_manager.hpp>
#include <tuple>
@@ -19,4 +19,4 @@
extern sd_bus* bus;
-std::shared_ptr<sdbusplus::bus::bus> getSdBus();
+std::shared_ptr<sdbusplus::asio::connection> getSdBus();