From 5f031f3c722f0a4d10e562f5cfa54ba32d12958e Mon Sep 17 00:00:00 2001 From: Deepak Kodihalli Date: Wed, 26 Jul 2017 08:25:59 -0500 Subject: Reconstruct OCC objects on app restart The OCC objects would get created when corresponding CPU inventory items get added. This doesn't cover a scenario where the OCC app restarts. If the CPU inventory is already present when the app starts, construct OCC objects as well. Resolves openbmc/openbmc#1824. Change-Id: I4994d93ba6f528ca67977604ccb1da717563092a Signed-off-by: Deepak Kodihalli --- occ_finder.hpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 occ_finder.hpp (limited to 'occ_finder.hpp') diff --git a/occ_finder.hpp b/occ_finder.hpp new file mode 100644 index 0000000..cad8277 --- /dev/null +++ b/occ_finder.hpp @@ -0,0 +1,20 @@ +#pragma once + +#include +#include + +namespace open_power +{ +namespace occ +{ +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. + */ +std::vector get(); + +} // namespace finder +} // namespace occ +} // namespace open_power -- cgit v1.2.1