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: Ie85ba085aedffd41bcb6310ee57adb86cb68273d
diff --git a/main.cpp b/main.cpp
index fd8f4b6..94603d1 100644
--- a/main.cpp
+++ b/main.cpp
@@ -56,7 +56,7 @@
#endif
#ifdef ENABLE_IPMI_SNOOP
-void IpmiPostReporter::getSelectorPositionSignal(sdbusplus::bus::bus& bus)
+void IpmiPostReporter::getSelectorPositionSignal(sdbusplus::bus_t& bus)
{
size_t posVal = 0;
@@ -64,7 +64,7 @@
bus,
sdbusplus::bus::match::rules::propertiesChanged(selectorObject,
selectorIface),
- [&](sdbusplus::message::message& msg) {
+ [&](sdbusplus::message_t& msg) {
std::string objectName;
std::map<std::string, Selector::PropertiesVariant> msgData;
msg.read(objectName, msgData);
@@ -155,7 +155,7 @@
#ifdef ENABLE_IPMI_SNOOP
// handle muti-host D-bus
int postCodeIpmiHandler(const std::string& snoopObject,
- const std::string& snoopDbus, sdbusplus::bus::bus& bus,
+ const std::string& snoopDbus, sdbusplus::bus_t& bus,
std::span<std::string> host)
{
int ret = 0;
@@ -312,7 +312,7 @@
bool deferSignals = true;
// Add systemd object manager.
- sdbusplus::server::manager::manager snoopdManager(bus, snoopObject);
+ sdbusplus::server::manager_t snoopdManager(bus, snoopObject);
PostReporter reporter(bus, snoopObject, deferSignals);
reporter.emit_object_added();