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: I592583489212a3a7d3fc48cedac2a97489aa149b
diff --git a/src/watchdog.hpp b/src/watchdog.hpp
index 31cde63..16f05f1 100644
--- a/src/watchdog.hpp
+++ b/src/watchdog.hpp
@@ -18,7 +18,7 @@
constexpr auto DEFAULT_MIN_INTERVAL_MS = 0;
namespace Base = sdbusplus::xyz::openbmc_project::State::server;
-using WatchdogInherits = sdbusplus::server::object::object<Base::Watchdog>;
+using WatchdogInherits = sdbusplus::server::object_t<Base::Watchdog>;
/** @class Watchdog
* @brief OpenBMC watchdog implementation.
@@ -63,7 +63,7 @@
* @param[in] minInterval - minimum intervale value allowed
* @param[in] defaultInterval - default interval to start with
*/
- Watchdog(sdbusplus::bus::bus& bus, const char* objPath,
+ Watchdog(sdbusplus::bus_t& bus, const char* objPath,
const sdeventplus::Event& event,
ActionTargetMap&& actionTargetMap = {},
std::optional<Fallback>&& fallback = std::nullopt,
@@ -164,7 +164,7 @@
private:
/** @brief sdbusplus handle */
- sdbusplus::bus::bus& bus;
+ sdbusplus::bus_t& bus;
/** @brief Map of systemd units to be started when the timer expires */
ActionTargetMap actionTargetMap;