summaryrefslogtreecommitdiffstats
path: root/utils.hpp
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@in.ibm.com>2017-09-01 23:06:25 +0530
committerPatrick Williams <patrick@stwcx.xyz>2017-09-08 17:30:39 +0000
commitcc6cdbf1d4111b0f29cc3dd37c61317a7abff58f (patch)
treeefb2948f0ab6738ba8be78f9d8ece193210ce29f /utils.hpp
parent558184ea80cd34bb62052e885b64ab38a3edf950 (diff)
downloadphosphor-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.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/utils.hpp b/utils.hpp
index a172e22..b50fde7 100644
--- a/utils.hpp
+++ b/utils.hpp
@@ -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
{
OpenPOWER on IntegriCloud