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: I96286490697ce5d7fecc1c9c358f5f1d054137ec
diff --git a/utils.hpp b/utils.hpp
index 2174938..af6dd98 100644
--- a/utils.hpp
+++ b/utils.hpp
@@ -16,7 +16,7 @@
*
* @return the bus service as a string
**/
-std::string getService(sdbusplus::bus::bus& bus, const std::string& path,
+std::string getService(sdbusplus::bus_t& bus, const std::string& path,
const std::string& interface);
/** @brief Get property(type: variant)
@@ -28,10 +28,10 @@
*
* @return The value of the property(type: variant)
*
- * @throw sdbusplus::exception::exception when it fails
+ * @throw sdbusplus::exception_t when it fails
*/
template <typename T>
-T getProperty(sdbusplus::bus::bus& bus, const std::string& objectPath,
+T getProperty(sdbusplus::bus_t& bus, const std::string& objectPath,
const std::string& interface, const std::string& propertyName)
{
std::variant<T> value{};
@@ -59,9 +59,9 @@
* @param[in] propertyName - D-Bus property name
* @param[in] value - The value to be set
*
- * @throw sdbusplus::exception::exception when it fails
+ * @throw sdbusplus::exception_t when it fails
*/
-void setProperty(sdbusplus::bus::bus& bus, const std::string& objectPath,
+void setProperty(sdbusplus::bus_t& bus, const std::string& objectPath,
const std::string& interface, const std::string& propertyName,
const PropertyValue& value);