diff options
Diffstat (limited to 'occ_finder.hpp')
-rw-r--r-- | occ_finder.hpp | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/occ_finder.hpp b/occ_finder.hpp index 557d468..59b5984 100644 --- a/occ_finder.hpp +++ b/occ_finder.hpp @@ -1,8 +1,8 @@ #pragma once -#include <vector> -#include <string> #include <sdbusplus/bus.hpp> +#include <string> +#include <vector> namespace open_power { @@ -21,10 +21,10 @@ using Match = std::tuple<Interface, Property, Value>; using Criteria = std::vector<Match>; /** @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 - */ + * @returns vector of occ objects, such as occ0, occ1, and so on. + * + * @param[in] bus - sdbusplus handler + */ std::vector<std::string> get(sdbusplus::bus::bus& bus); /** @brief Returns true if the inventory item matches the criteria @@ -36,10 +36,8 @@ std::vector<std::string> get(sdbusplus::bus::bus& bus); * * @return true on match, false otherwise */ -bool matchCriteria(sdbusplus::bus::bus& bus, - const std::string& path, - const std::string& service, - const Criteria& match); +bool matchCriteria(sdbusplus::bus::bus& bus, const std::string& path, + const std::string& service, const Criteria& match); /** @brief Gets the value associated with the given object * and the interface. @@ -54,10 +52,8 @@ bool matchCriteria(sdbusplus::bus::bus& bus, */ template <typename T> -T getDbusProperty(sdbusplus::bus::bus& bus, - const std::string& service, - const std::string& objPath, - const std::string& interface, +T getDbusProperty(sdbusplus::bus::bus& bus, const std::string& service, + const std::string& objPath, const std::string& interface, const std::string& property); } // namespace finder |