diff options
author | Matthew Barth <msbarth@us.ibm.com> | 2017-09-26 09:15:56 -0500 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-11-17 15:43:28 +0000 |
commit | 336f18a541e93e2cc1719180df73ef8b357c962f (patch) | |
tree | e0edf72beb42a9c7a7a6ce9e46b768d1b7fcfffd /control/zone.hpp | |
parent | 6088558429fbe5f723783b4220b6ac1c9096cde9 (diff) | |
download | phosphor-fan-presence-336f18a541e93e2cc1719180df73ef8b357c962f.tar.gz phosphor-fan-presence-336f18a541e93e2cc1719180df73ef8b357c962f.zip |
Update event initialization
Using a null dbus message to the event signal will perform the necessary
steps to initialize the event parameters using the given signal
handler's function directly.
i.e.) In the case for subscribing to PropertiesChanged signals,
initially the given property must be read. When the PropertiesChanged
signal struct is given a null message, it finds the property, reads the
value, and then can perform the given signal handler function directly.
This produces the same functional path as receiving a PropertiesChanged
signal containing the property value within the message.
Change-Id: I35575cfff66eb0305156be786cb1f5536d42bb1c
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/zone.hpp')
-rw-r--r-- | control/zone.hpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/control/zone.hpp b/control/zone.hpp index c7995b6..8869f91 100644 --- a/control/zone.hpp +++ b/control/zone.hpp @@ -393,34 +393,6 @@ class Zone }; /** - * @brief Refresh the given property's cached value - * - * @param[in] bus - the bus to use - * @param[in] path - the dbus path name - * @param[in] iface - the dbus interface name - * @param[in] prop - the property name - */ - void refreshProperty(sdbusplus::bus::bus& bus, - const std::string& path, - const std::string& iface, - const std::string& prop); - - /** - * @brief Get a property value from the path/interface given - * - * @param[in] bus - the bus to use - * @param[in] path - the dbus path name - * @param[in] iface - the dbus interface name - * @param[in] prop - the property name - * @param[out] value - the value of the property - */ - static void getProperty(sdbusplus::bus::bus& bus, - const std::string& path, - const std::string& iface, - const std::string& prop, - PropertyVariantType& value); - - /** * @brief Dbus signal change callback handler * * @param[in] msg - Expanded sdbusplus message data |