summaryrefslogtreecommitdiffstats
path: root/settings.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'settings.hpp')
-rw-r--r--settings.hpp65
1 files changed, 32 insertions, 33 deletions
diff --git a/settings.hpp b/settings.hpp
index 088628a..a1a9a6e 100644
--- a/settings.hpp
+++ b/settings.hpp
@@ -11,8 +11,7 @@ using Service = std::string;
using Interface = std::string;
constexpr auto root = "/";
-constexpr auto autoRebootIntf =
- "xyz.openbmc_project.Control.Boot.RebootPolicy";
+constexpr auto autoRebootIntf = "xyz.openbmc_project.Control.Boot.RebootPolicy";
constexpr auto powerRestoreIntf =
"xyz.openbmc_project.Control.Power.RestorePolicy";
@@ -21,37 +20,37 @@ constexpr auto powerRestoreIntf =
*/
struct Objects
{
- public:
- /** @brief Constructor - fetch settings objects
- *
- * @param[in] bus - The Dbus bus object
- */
- Objects(sdbusplus::bus::bus& bus);
- Objects(const Objects&) = delete;
- Objects& operator=(const Objects&) = delete;
- 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 name
- */
- Service service(const Path& path, const Interface& interface) const;
-
- /** @brief host auto_reboot settings object */
- Path autoReboot;
-
- /** @brief host power_restore_policy settings object */
- Path powerRestorePolicy;
-
- /** @brief The Dbus bus object */
- sdbusplus::bus::bus& bus;
+ public:
+ /** @brief Constructor - fetch settings objects
+ *
+ * @param[in] bus - The Dbus bus object
+ */
+ Objects(sdbusplus::bus::bus& bus);
+ Objects(const Objects&) = delete;
+ Objects& operator=(const Objects&) = delete;
+ 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 name
+ */
+ Service service(const Path& path, const Interface& interface) const;
+
+ /** @brief host auto_reboot settings object */
+ Path autoReboot;
+
+ /** @brief host power_restore_policy settings object */
+ Path powerRestorePolicy;
+
+ /** @brief The Dbus bus object */
+ sdbusplus::bus::bus& bus;
};
} // namespace settings
OpenPOWER on IntegriCloud