diff options
author | Ratan Gupta <ratagupt@in.ibm.com> | 2017-09-01 23:06:25 +0530 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-09-08 17:30:39 +0000 |
commit | cc6cdbf1d4111b0f29cc3dd37c61317a7abff58f (patch) | |
tree | efb2948f0ab6738ba8be78f9d8ece193210ce29f /utils.hpp | |
parent | 558184ea80cd34bb62052e885b64ab38a3edf950 (diff) | |
download | phosphor-host-ipmid-cc6cdbf1d4111b0f29cc3dd37c61317a7abff58f.tar.gz phosphor-host-ipmid-cc6cdbf1d4111b0f29cc3dd37c61317a7abff58f.zip |
GetLan: Support for get/set of ipsrc parameter
Change-Id: Id9c52bb0963c5924f80f9e273b53ed5556b16a2c
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Diffstat (limited to 'utils.hpp')
-rw-r--r-- | utils.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -113,6 +113,17 @@ void deleteAllDbusObjects(sdbusplus::bus::bus& bus, const std::string& interface, const std::string& match = {}); +/** @brief Gets the ancestor objects of the given object + which implements the given interface. + * @param[in] bus - Dbus bus object. + * @param[in] path - Child Dbus object path. + * @param[in] interfaces - Dbus interface list. + * @return map of object path and service info. + */ +ObjectTree getAllAncestors(sdbusplus::bus::bus& bus, + const std::string& path, + InterfaceList&& interfaces); + namespace method_no_args { |