summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorVernon Mauery <vernon.mauery@linux.intel.com>2019-03-11 15:57:48 -0700
committerVernon Mauery <vernon.mauery@linux.intel.com>2019-03-25 16:18:21 +0000
commit6a98fe7fd233813f3875d4a8c565234418a41f33 (patch)
treecb9f4c87577fa3814d39716253c58ca78ed736b0 /app
parent4ec4e40a44d68efb7f70603aa5bda5a4f96f2de5 (diff)
downloadphosphor-host-ipmid-6a98fe7fd233813f3875d4a8c565234418a41f33.zip
phosphor-host-ipmid-6a98fe7fd233813f3875d4a8c565234418a41f33.tar.gz
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>
Diffstat (limited to 'app')
-rw-r--r--app/channel.cpp2
-rw-r--r--app/watchdog_service.hpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/app/channel.cpp b/app/channel.cpp
index 93fba24..e4532c5 100644
--- a/app/channel.cpp
+++ b/app/channel.cpp
@@ -3,12 +3,12 @@
#include "transporthandler.hpp"
#include "types.hpp"
#include "user_channel/channel_layer.hpp"
-#include "utils.hpp"
#include <arpa/inet.h>
#include <boost/process/child.hpp>
#include <fstream>
+#include <ipmid/utils.hpp>
#include <phosphor-logging/elog-errors.hpp>
#include <phosphor-logging/log.hpp>
#include <set>
diff --git a/app/watchdog_service.hpp b/app/watchdog_service.hpp
index 75afc1e..0cf1c74 100644
--- a/app/watchdog_service.hpp
+++ b/app/watchdog_service.hpp
@@ -1,6 +1,5 @@
#pragma once
-#include "utils.hpp"
-
+#include <ipmid/utils.hpp>
#include <sdbusplus/bus.hpp>
#include <xyz/openbmc_project/State/Watchdog/server.hpp>
OpenPOWER on IntegriCloud