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
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I0eb22958103519924e336a2260a4d48015848c3e
diff --git a/vpd-manager/bios_handler.cpp b/vpd-manager/bios_handler.cpp
index 2421277..417852e 100644
--- a/vpd-manager/bios_handler.cpp
+++ b/vpd-manager/bios_handler.cpp
@@ -27,12 +27,12 @@
{
// Setup a match on NameOwnerChanged to determine when PLDM is up. In
// the signal handler, call restoreBIOSAttribs
- static std::shared_ptr<sdbusplus::bus::match::match> nameOwnerMatch =
- std::make_shared<sdbusplus::bus::match::match>(
+ static std::shared_ptr<sdbusplus::bus::match_t> nameOwnerMatch =
+ std::make_shared<sdbusplus::bus::match_t>(
bus,
sdbusplus::bus::match::rules::nameOwnerChanged(
"xyz.openbmc_project.PLDM"),
- [this](sdbusplus::message::message& msg) {
+ [this](sdbusplus::message_t& msg) {
if (msg.is_method_error())
{
std::cerr << "Error in reading name owner signal "
@@ -84,18 +84,16 @@
void BiosHandler::listenBiosAttribs()
{
- static std::shared_ptr<sdbusplus::bus::match::match> biosMatcher =
- std::make_shared<sdbusplus::bus::match::match>(
+ static std::shared_ptr<sdbusplus::bus::match_t> biosMatcher =
+ std::make_shared<sdbusplus::bus::match_t>(
bus,
sdbusplus::bus::match::rules::propertiesChanged(
"/xyz/openbmc_project/bios_config/manager",
"xyz.openbmc_project.BIOSConfig.Manager"),
- [this](sdbusplus::message::message& msg) {
- biosAttribsCallback(msg);
- });
+ [this](sdbusplus::message_t& msg) { biosAttribsCallback(msg); });
}
-void BiosHandler::biosAttribsCallback(sdbusplus::message::message& msg)
+void BiosHandler::biosAttribsCallback(sdbusplus::message_t& msg)
{
if (msg.is_method_error())
{