diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-07-12 22:56:49 -0400 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-07-18 00:20:39 +0000 |
commit | 1e4922a6745cc77f9ce6176c3c3cb6d8f4750565 (patch) | |
tree | 299ee11b3939cf04d17f2c66af84f4961d5805c5 | |
parent | 8e942504b07a546de78f21dcf2368507dfcf64bb (diff) | |
download | phosphor-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>
-rw-r--r-- | sdbusplus.hpp | 4 |
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. */ |