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/dcmihandler.cpp b/dcmihandler.cpp
index e9cc39a..e858416 100644
--- a/dcmihandler.cpp
+++ b/dcmihandler.cpp
@@ -3,13 +3,13 @@
#include "dcmihandler.hpp"
#include "user_channel/channel_layer.hpp"
-#include "utils.hpp"
#include <ipmid/api.h>
#include <bitset>
#include <cmath>
#include <fstream>
+#include <ipmid/utils.hpp>
#include <nlohmann/json.hpp>
#include <phosphor-logging/elog-errors.hpp>
#include <phosphor-logging/log.hpp>