Consistently use ManagedObjectType
Some subsystems seem to have invented their own typedefs for this stuff,
move to using the one typedef in dbus::utility so we're consistent, and
we reduce our templates.
Tested: code compiles
This saves a negligible amount (104 bytes compressed) on our binary
size.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I952ea1f960aa703808d0ac80f35dc24cdd8d5027
diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp
index b908da5..0bfd15e 100644
--- a/redfish-core/lib/log_services.hpp
+++ b/redfish-core/lib/log_services.hpp
@@ -106,10 +106,6 @@
using GetManagedPropertyType =
boost::container::flat_map<std::string, dbus::utility::DbusVariantType>;
-using GetManagedObjectsType = boost::container::flat_map<
- sdbusplus::message::object_path,
- boost::container::flat_map<std::string, GetManagedPropertyType>>;
-
inline std::string translateSeverityDbusToRedfish(const std::string& s)
{
if ((s == "xyz.openbmc_project.Logging.Entry.Level.Alert") ||
@@ -396,8 +392,9 @@
}
crow::connections::systemBus->async_method_call(
- [asyncResp, dumpPath, dumpType](const boost::system::error_code ec,
- GetManagedObjectsType& resp) {
+ [asyncResp, dumpPath,
+ dumpType](const boost::system::error_code ec,
+ dbus::utility::ManagedObjectType& resp) {
if (ec)
{
BMCWEB_LOG_ERROR << "DumpEntry resp_handler got error " << ec;
@@ -554,8 +551,9 @@
}
crow::connections::systemBus->async_method_call(
- [asyncResp, entryID, dumpPath, dumpType](
- const boost::system::error_code ec, GetManagedObjectsType& resp) {
+ [asyncResp, entryID, dumpPath,
+ dumpType](const boost::system::error_code ec,
+ dbus::utility::ManagedObjectType& resp) {
if (ec)
{
BMCWEB_LOG_ERROR << "DumpEntry resp_handler got error " << ec;
@@ -1365,7 +1363,7 @@
// Make call to Logging Service to find all log entry objects
crow::connections::systemBus->async_method_call(
[asyncResp](const boost::system::error_code ec,
- GetManagedObjectsType& resp) {
+ dbus::utility::ManagedObjectType& resp) {
if (ec)
{
// TODO Handle for specific error code