From 1ec291fbaddf4f2b44cdfff3891d8782f28fb2c9 Mon Sep 17 00:00:00 2001 From: Vishwanatha Subbanna Date: Mon, 21 Aug 2017 17:07:29 +0530 Subject: Remove creating sdbusplus handler in occ_finder occ finder was creating a separate sdbusplus handler to access the Inventory instead of using the one which is already available. This commit will enforce using the bus which is already created. Change-Id: Ic256f185b67c661ba551139d5e057eee3ac67c7e Signed-off-by: Vishwanatha Subbanna --- occ_finder.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'occ_finder.hpp') diff --git a/occ_finder.hpp b/occ_finder.hpp index cad8277..c096c4b 100644 --- a/occ_finder.hpp +++ b/occ_finder.hpp @@ -2,6 +2,7 @@ #include #include +#include namespace open_power { @@ -12,8 +13,10 @@ namespace finder /** @brief Get OCC objects on the system by mapping them to CPU inventory * @returns vector of occ objects, such as occ0, occ1, and so on. + * + * @param[in] bus - sdbusplus handler */ -std::vector get(); +std::vector get(sdbusplus::bus::bus& bus); } // namespace finder } // namespace occ -- cgit v1.2.1