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: I6a559082fed34ae62b648345ead793436d2d03f6
diff --git a/src/test/propertywatchtest.hpp b/src/test/propertywatchtest.hpp
index 6fcf45f..f6b7496 100644
--- a/src/test/propertywatchtest.hpp
+++ b/src/test/propertywatchtest.hpp
@@ -255,9 +255,8 @@
const std::string&, const std::string&, const std::string&,
const std::string&, const std::string&));
- MOCK_METHOD2(fwdAddMatch,
- void(const std::string&,
- const sdbusplus::bus::match::match::callback_t&));
+ MOCK_METHOD2(fwdAddMatch, void(const std::string&,
+ const sdbusplus::bus::match_t::callback_t&));
static MockDBusInterface* ptr;
static MockDBusInterface& instance()
@@ -282,9 +281,8 @@
}
/** @brief GMock free function forward. */
- static auto
- addMatch(const std::string& match,
- const sdbusplus::bus::match::match::callback_t& callback)
+ static auto addMatch(const std::string& match,
+ const sdbusplus::bus::match_t::callback_t& callback)
{
instance().fwdAddMatch(match, callback);
}