diff options
author | Jiaqing Zhao <jiaqing.zhao@intel.com> | 2022-08-15 11:15:52 +0300 |
---|---|---|
committer | Jiaqing Zhao <jiaqing.zhao@intel.com> | 2022-08-15 11:35:10 +0300 |
commit | 1e5b7c8892238b5d17c269bfa0ecdaf60825e801 (patch) | |
tree | a14b8e9b28b85760808319c6908930c671f56d96 | |
parent | 2d613eb6be049a91aa651be0d5a57cf4a6974b41 (diff) | |
download | bmcweb-1e5b7c8892238b5d17c269bfa0ecdaf60825e801.tar.xz |
system: Remove ipsPropertiesType
ipsPropertiesType is identical to dbus::utility::DBusPropertiesMap,
change to the latter one for consistency.
Tested:
Build pass.
Change-Id: Ibe006a252a8eb9c2861917ee255fc6093f0176ea
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
-rw-r--r-- | redfish-core/lib/systems.hpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/redfish-core/lib/systems.hpp b/redfish-core/lib/systems.hpp index 4a05452e55..dd58e1b641 100644 --- a/redfish-core/lib/systems.hpp +++ b/redfish-core/lib/systems.hpp @@ -2288,8 +2288,6 @@ inline void setWDTProperties(const std::shared_ptr<bmcweb::AsyncResp>& aResp, } } -using ipsPropertiesType = - std::vector<std::pair<std::string, dbus::utility::DbusVariantType>>; /** * @brief Parse the Idle Power Saver properties into json * @@ -2298,8 +2296,9 @@ using ipsPropertiesType = * * @return true if successful */ -inline bool parseIpsProperties(const std::shared_ptr<bmcweb::AsyncResp>& aResp, - const ipsPropertiesType& properties) +inline bool + parseIpsProperties(const std::shared_ptr<bmcweb::AsyncResp>& aResp, + const dbus::utility::DBusPropertiesMap& properties) { for (const auto& property : properties) { @@ -2428,7 +2427,7 @@ inline void getIdlePowerSaver(const std::shared_ptr<bmcweb::AsyncResp>& aResp) // Valid IdlePowerSaver object found, now read the current values crow::connections::systemBus->async_method_call( [aResp](const boost::system::error_code ec2, - const ipsPropertiesType& properties) { + const dbus::utility::DBusPropertiesMap& properties) { if (ec2) { BMCWEB_LOG_ERROR |