From cc6cdbf1d4111b0f29cc3dd37c61317a7abff58f Mon Sep 17 00:00:00 2001 From: Ratan Gupta Date: Fri, 1 Sep 2017 23:06:25 +0530 Subject: GetLan: Support for get/set of ipsrc parameter Change-Id: Id9c52bb0963c5924f80f9e273b53ed5556b16a2c Signed-off-by: Ratan Gupta --- utils.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'utils.hpp') 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 { -- cgit v1.2.1