diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-01-30 08:52:26 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-02-15 17:43:18 +0000 |
commit | d0f48adcb11d1640cc906446f6222c2b95052cb5 (patch) | |
tree | e13a71aa31714f18817561fe1d3e6c38be6998f4 /types.hpp | |
parent | c1f4798d36e63842c97692ca1a36c0975da18c09 (diff) | |
download | phosphor-inventory-manager-d0f48adcb11d1640cc906446f6222c2b95052cb5.tar.gz phosphor-inventory-manager-d0f48adcb11d1640cc906446f6222c2b95052cb5.zip |
Add path conditions
Add support to setProperty and destroyObject to conditionally
perform their action based on the result of a condition testing
functor.
Change-Id: I67ded31f4a7ee0f7a29bb6edc06ebf9249cdc070
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'types.hpp')
-rw-r--r-- | types.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -32,7 +32,8 @@ using Object = ObjectType<InterfaceVariantType>; using Action = std::function<void (sdbusplus::bus::bus&, Manager&)>; using Filter = std::function < bool (sdbusplus::bus::bus&, sdbusplus::message::message&, Manager&) >; - +using PathCondition = std::function < + bool (const std::string&, sdbusplus::bus::bus&, Manager&) >; } // namespace manager } // namespace inventory } // namespace phosphor |