diff options
author | Patrick Venture <venture@google.com> | 2018-08-31 11:55:55 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2018-09-07 23:45:41 +0000 |
commit | 0b02be925a29357f69abbc9e9a58e7c5aaed2eab (patch) | |
tree | c1b39f817d98ffda7b987f9e3f864f576e3bf9ea /settings.hpp | |
parent | 26f80ab2cc41deadc913190d906f71266c4ed224 (diff) | |
download | phosphor-host-ipmid-0b02be925a29357f69abbc9e9a58e7c5aaed2eab.tar.gz phosphor-host-ipmid-0b02be925a29357f69abbc9e9a58e7c5aaed2eab.zip |
add .clang-format
Change-Id: I7c2a527b4751a560703a61fcbe9638b150546af5
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'settings.hpp')
-rw-r--r-- | settings.hpp | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/settings.hpp b/settings.hpp index 91c9930..5382fdd 100644 --- a/settings.hpp +++ b/settings.hpp @@ -1,8 +1,8 @@ #pragma once +#include <sdbusplus/bus.hpp> #include <string> #include <tuple> -#include <sdbusplus/bus.hpp> namespace settings { @@ -18,36 +18,36 @@ constexpr auto root = "/"; */ struct Objects { - public: - /** @brief Constructor - fetch settings objects - * - * @param[in] bus - The Dbus bus object - * @param[in] filter - A vector of settings interfaces the caller is - * interested in. - */ - Objects(sdbusplus::bus::bus& bus, const std::vector<Interface>& filter); - Objects(const Objects&) = default; - Objects& operator=(const Objects&) = default; - Objects(Objects&&) = delete; - Objects& operator=(Objects&&) = delete; - ~Objects() = default; + public: + /** @brief Constructor - fetch settings objects + * + * @param[in] bus - The Dbus bus object + * @param[in] filter - A vector of settings interfaces the caller is + * interested in. + */ + Objects(sdbusplus::bus::bus& bus, const std::vector<Interface>& filter); + Objects(const Objects&) = default; + Objects& operator=(const Objects&) = default; + Objects(Objects&&) = delete; + Objects& operator=(Objects&&) = delete; + ~Objects() = default; - /** @brief Fetch d-bus service, given a path and an interface. The - * service can't be cached because mapper returns unique - * service names. - * - * @param[in] path - The Dbus object - * @param[in] interface - The Dbus interface - * - * @return std::string - the dbus service - */ - Service service(const Path& path, const Interface& interface) const; + /** @brief Fetch d-bus service, given a path and an interface. The + * service can't be cached because mapper returns unique + * service names. + * + * @param[in] path - The Dbus object + * @param[in] interface - The Dbus interface + * + * @return std::string - the dbus service + */ + Service service(const Path& path, const Interface& interface) const; - /** @brief map of settings objects */ - std::map<Interface, std::vector<Path>> map; + /** @brief map of settings objects */ + std::map<Interface, std::vector<Path>> map; - /** @brief The Dbus bus object */ - sdbusplus::bus::bus& bus; + /** @brief The Dbus bus object */ + sdbusplus::bus::bus& bus; }; namespace boot |