Move util.cpp/util.hpp to libipmid
These are functions that are used widely by ipmid providers, so it makes
sense to put them in libipmi.so (the library that all providers must
link against).
Tested-by: use nm to inspect the binaries to see that the symbols are in
the expected library.
arm-openbmc-linux-gnueabi-nm libipmid.so.0.0.0 \
| grep getDbusObject
0001063c T _ZN4ipmi13getDbusObjectERN9sdbusplus....
Change-Id: I1221f807f2711c5301c5574623564ea1ae48a437
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
diff --git a/apphandler.cpp b/apphandler.cpp
index ac969e9..0993139 100644
--- a/apphandler.cpp
+++ b/apphandler.cpp
@@ -6,7 +6,6 @@
#include "sys_info_param.hpp"
#include "transporthandler.hpp"
#include "types.hpp"
-#include "utils.hpp"
#include <arpa/inet.h>
#include <ipmid/api.h>
@@ -19,6 +18,7 @@
#include <array>
#include <cstddef>
#include <fstream>
+#include <ipmid/utils.hpp>
#include <memory>
#include <nlohmann/json.hpp>
#include <phosphor-logging/elog-errors.hpp>