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: I29672cb229bd07022b00f52105ac1d50ecacca62
diff --git a/nmi_interface.hpp b/nmi_interface.hpp
index ef871b8..3835c61 100644
--- a/nmi_interface.hpp
+++ b/nmi_interface.hpp
@@ -10,7 +10,7 @@
{
using Base = sdbusplus::xyz::openbmc_project::Control::Host::server::NMI;
-using Interface = sdbusplus::server::object::object<Base>;
+using Interface = sdbusplus::server::object_t<Base>;
/* @class NMI
* @brief Implementation of NMI (Soft Reset)
@@ -29,7 +29,7 @@
* @param[in] bus - sdbusplus D-Bus to attach to.
* @param[in] path - Path to attach to.
*/
- NMI(sdbusplus::bus::bus& bus, const char* path);
+ NMI(sdbusplus::bus_t& bus, const char* path);
/* @brief trigger stop followed by soft reset.
*/
@@ -37,7 +37,7 @@
private:
/** @brief sdbus handle */
- sdbusplus::bus::bus& bus;
+ sdbusplus::bus_t& bus;
/** @brief object path */
std::string objectPath;