sdbusplus: Add PropertiesChanged type alias
Add an alias to cut down on typing when using properties
changed signal callbacks.
Change-Id: I494d58006cbc136fc2f1d9395039a4535922f35e
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/sdbusplus.hpp b/sdbusplus.hpp
index 133443f..fb6c51c 100644
--- a/sdbusplus.hpp
+++ b/sdbusplus.hpp
@@ -19,6 +19,10 @@
namespace errors = sdbusplus::xyz::openbmc_project::Common::Error;
} // namespace detail
+/** @brief Alias for PropertiesChanged signal callbacks. */
+template <typename ...T>
+using Properties = std::map<std::string, sdbusplus::message::variant<T...>>;
+
/** @class SDBusPlus
* @brief DBus access delegate implementation for sdbusplus.
*/