Add API to retrieve settings
Add API to retrieve all settings objects of interest to the time
manager.
Change-Id: I3d121c08d0156cf481a3468e6c7ca9b71f53d666
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/time-config.hpp b/time-config.hpp
index 367380c..2d55b4b 100644
--- a/time-config.hpp
+++ b/time-config.hpp
@@ -1,5 +1,6 @@
#include <map>
#include <systemd/sd-bus.h>
+#include "settings.hpp"
/** @class TimeConfig
* @brief Maintains various time modes and time owners.
@@ -224,6 +225,9 @@
// Needed to nudge Time Manager to reset offset
bool iv_SplitModeChanged;
+ /** @brief Settings objects of intereset */
+ settings::Objects settings;
+
static constexpr auto cv_TimeModeFile = "/var/lib/obmc/saved_timeMode";
static constexpr auto cv_TimeOwnerFile = "/var/lib/obmc/saved_timeOwner";
static constexpr auto cv_DhcpNtpFile = "/var/lib/obmc/saved_dhcpNtp";