netipmid: move to sdbusplus from sdbus minus
In main, wrapping the raw sd_bus object with an sdbusplus class makes
deals with the unref problem automatically.
Change-Id: I7d21c21bc09cc96e2d4b07d1b51b6f82239e0793
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
diff --git a/main.hpp b/main.hpp
index af577f6..5639342 100644
--- a/main.hpp
+++ b/main.hpp
@@ -5,6 +5,7 @@
#include "sol/sol_manager.hpp"
#include <command_table.hpp>
+#include <sdbusplus/bus.hpp>
#include <sessions_manager.hpp>
#include <tuple>
@@ -17,3 +18,5 @@
static const auto IPMI_STD_PORT = 623;
extern sd_bus* bus;
+
+std::shared_ptr<sdbusplus::bus::bus> getSdBus();