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: I9029cc722e7712633c15436bd3868d8c3209f567
diff --git a/control/functor.hpp b/control/functor.hpp
index 9f81fc5..59e15df 100644
--- a/control/functor.hpp
+++ b/control/functor.hpp
@@ -102,7 +102,7 @@
* Extract the property from the PropertiesChanged
* message and run the handler function.
*/
- void operator()(sdbusplus::bus::bus& bus, sdbusplus::message::message& msg,
+ void operator()(sdbusplus::bus_t& bus, sdbusplus::message_t& msg,
Zone& zone) const
{
if (msg)
@@ -137,7 +137,7 @@
auto val = zone.getPropertyByName<T>(_path, _intf, _prop);
_handler(zone, _path, _intf, _prop, std::forward<T>(val));
}
- catch (const sdbusplus::exception::exception&)
+ catch (const sdbusplus::exception_t&)
{
// Property will not be used unless a property changed
// signal message is received for this property.
@@ -168,7 +168,7 @@
auto val = zone.getPropertyByName<T>(path, intf, prop);
handler(zone, path, intf, prop, std::forward<T>(val));
}
- catch (const sdbusplus::exception::exception&)
+ catch (const sdbusplus::exception_t&)
{
// Property value not sent to handler
}
@@ -245,7 +245,7 @@
* Extract the property from the InterfacesAdded
* message and run the handler function.
*/
- void operator()(sdbusplus::bus::bus&, sdbusplus::message::message& msg,
+ void operator()(sdbusplus::bus_t&, sdbusplus::message_t& msg,
Zone& zone) const
{
if (msg)
@@ -332,7 +332,7 @@
* Extract the interfaces from the InterfacesRemoved
* message and run the handler function.
*/
- void operator()(sdbusplus::bus::bus&, sdbusplus::message::message& msg,
+ void operator()(sdbusplus::bus_t&, sdbusplus::message_t& msg,
Zone& zone) const
{
if (msg)
@@ -403,7 +403,7 @@
* Extract the name owner from the NameOwnerChanged
* message and run the handler function.
*/
- void operator()(sdbusplus::bus::bus& bus, sdbusplus::message::message& msg,
+ void operator()(sdbusplus::bus_t& bus, sdbusplus::message_t& msg,
Zone& zone) const
{
if (msg)