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: Ie36d234f4580029a7832a0cd179f3bb78a1a403f
diff --git a/sensors/host.hpp b/sensors/host.hpp
index bf935b7..efbc17d 100644
--- a/sensors/host.hpp
+++ b/sensors/host.hpp
@@ -11,7 +11,7 @@
#include <type_traits>
template <typename... T>
-using ServerObject = typename sdbusplus::server::object::object<T...>;
+using ServerObject = typename sdbusplus::server::object_t<T...>;
using ValueInterface = sdbusplus::xyz::openbmc_project::Sensor::server::Value;
using ValueObject = ServerObject<ValueInterface>;
@@ -42,11 +42,11 @@
public:
static std::unique_ptr<Sensor> createTemp(const std::string& name,
int64_t timeout,
- sdbusplus::bus::bus& bus,
+ sdbusplus::bus_t& bus,
const char* objPath, bool defer);
- HostSensor(const std::string& name, int64_t timeout,
- sdbusplus::bus::bus& bus, const char* objPath, bool defer) :
+ HostSensor(const std::string& name, int64_t timeout, sdbusplus::bus_t& bus,
+ const char* objPath, bool defer) :
Sensor(name, timeout),
ValueObject(bus, objPath,
defer ? ValueObject::action::defer_emit