sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types.
Switch to using them to provide better code clarity and shorter
lines. Possible replacements are for:
* bus_t
* exception_t
* manager_t
* match_t
* message_t
* object_t
* slot_t
Change-Id: I02e8e49b245f1f42d10983fee65f05efc5326fc7
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/dump-extensions/openpower-dumps/op_dump_util.cpp b/dump-extensions/openpower-dumps/op_dump_util.cpp
index ddb0699..37cd8f7 100644
--- a/dump-extensions/openpower-dumps/op_dump_util.cpp
+++ b/dump-extensions/openpower-dumps/op_dump_util.cpp
@@ -19,7 +19,7 @@
namespace util
{
-bool isOPDumpsEnabled(sdbusplus::bus::bus& bus)
+bool isOPDumpsEnabled(sdbusplus::bus_t& bus)
{
// Set isEnabled as true by default. In a field deployment, the system dump
// feature is usually enabled to facilitate effective debugging in the event
@@ -54,7 +54,7 @@
}
BIOSAttrValueType readBIOSAttribute(const std::string& attrName,
- sdbusplus::bus::bus& bus)
+ sdbusplus::bus_t& bus)
{
std::tuple<std::string, BIOSAttrValueType, BIOSAttrValueType> attrVal;
auto method = bus.new_method_call(
@@ -77,7 +77,7 @@
return std::get<1>(attrVal);
}
-bool isSystemDumpInProgress(sdbusplus::bus::bus& bus)
+bool isSystemDumpInProgress(sdbusplus::bus_t& bus)
{
try
{
diff --git a/dump-extensions/openpower-dumps/op_dump_util.hpp b/dump-extensions/openpower-dumps/op_dump_util.hpp
index 695fcd5..fcdebd6 100644
--- a/dump-extensions/openpower-dumps/op_dump_util.hpp
+++ b/dump-extensions/openpower-dumps/op_dump_util.hpp
@@ -17,7 +17,7 @@
* the dumps are enabled.
* @return true - if dumps are enabled, false - if dumps are not enabled
*/
-bool isOPDumpsEnabled(sdbusplus::bus::bus& bus);
+bool isOPDumpsEnabled(sdbusplus::bus_t& bus);
using BIOSAttrValueType = std::variant<int64_t, std::string>;
@@ -31,7 +31,7 @@
* @throws sdbusplus::exception::SdBusError if failed to read the attribute
*/
BIOSAttrValueType readBIOSAttribute(const std::string& attrName,
- sdbusplus::bus::bus& bus);
+ sdbusplus::bus_t& bus);
/** @brief Check whether a system is in progress or available to offload.
*
@@ -40,7 +40,7 @@
* @return true - A dump is in progress or available to offload
* false - No dump in progress
*/
-bool isSystemDumpInProgress(sdbusplus::bus::bus& bus);
+bool isSystemDumpInProgress(sdbusplus::bus_t& bus);
} // namespace util
} // namespace dump
} // namespace openpower