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: Ibc88a5de1e7a11d332410985f29698b24aeae983
diff --git a/src/cpuinfo_main.cpp b/src/cpuinfo_main.cpp
index 0d9c797..4633174 100644
--- a/src/cpuinfo_main.cpp
+++ b/src/cpuinfo_main.cpp
@@ -319,11 +319,11 @@
cpuUpdatedMatch.insert_or_assign(
cpu,
- std::make_unique<sdbusplus::bus::match::match>(
- static_cast<sdbusplus::bus::bus&>(*conn),
+ std::make_unique<sdbusplus::bus::match_t>(
+ static_cast<sdbusplus::bus_t&>(*conn),
sdbusplus::bus::match::rules::interfacesAdded() +
sdbusplus::bus::match::rules::argNpath(0, objectPath.c_str()),
- [conn, cpu](sdbusplus::message::message& msg) {
+ [conn, cpu](sdbusplus::message_t& msg) {
sdbusplus::message::object_path objectName;
boost::container::flat_map<
std::string,
@@ -561,13 +561,13 @@
{
// Get the Cpu configuration
// In case it's not available, set a match for it
- static std::unique_ptr<sdbusplus::bus::match::match> cpuConfigMatch =
- std::make_unique<sdbusplus::bus::match::match>(
+ static std::unique_ptr<sdbusplus::bus::match_t> cpuConfigMatch =
+ std::make_unique<sdbusplus::bus::match_t>(
*conn,
"type='signal',interface='org.freedesktop.DBus.Properties',member='"
"PropertiesChanged',arg0='xyz.openbmc_project."
"Configuration.XeonCPU'",
- [&io, conn, &objServer](sdbusplus::message::message& msg) {
+ [&io, conn, &objServer](sdbusplus::message_t& msg) {
std::cerr << "get cpu configuration match\n";
static boost::asio::steady_timer filterTimer(io);
filterTimer.expires_after(
@@ -644,9 +644,9 @@
conn->request_name(cpu_info::cpuInfoObject);
sdbusplus::asio::object_server server =
sdbusplus::asio::object_server(conn);
- sdbusplus::bus::bus& bus = static_cast<sdbusplus::bus::bus&>(*conn);
- sdbusplus::server::manager::manager objManager(
- bus, "/xyz/openbmc_project/inventory");
+ sdbusplus::bus_t& bus = static_cast<sdbusplus::bus_t&>(*conn);
+ sdbusplus::server::manager_t objManager(bus,
+ "/xyz/openbmc_project/inventory");
cpu_info::hostStateSetup(conn);