summaryrefslogtreecommitdiffstats
path: root/sdbusplus.hpp
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2017-07-12 22:56:49 -0400
committerPatrick Williams <patrick@stwcx.xyz>2017-07-18 00:20:39 +0000
commit1e4922a6745cc77f9ce6176c3c3cb6d8f4750565 (patch)
tree299ee11b3939cf04d17f2c66af84f4961d5805c5 /sdbusplus.hpp
parent8e942504b07a546de78f21dcf2368507dfcf64bb (diff)
downloadphosphor-fan-presence-1e4922a6745cc77f9ce6176c3c3cb6d8f4750565.tar.gz
phosphor-fan-presence-1e4922a6745cc77f9ce6176c3c3cb6d8f4750565.zip
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>
Diffstat (limited to 'sdbusplus.hpp')
-rw-r--r--sdbusplus.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/sdbusplus.hpp b/sdbusplus.hpp
index 133443f..fb6c51c 100644
--- a/sdbusplus.hpp
+++ b/sdbusplus.hpp
@@ -19,6 +19,10 @@ namespace detail
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.
*/
OpenPOWER on IntegriCloud