summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 7a6d802c..37752870 100644
--- a/src/main.c
+++ b/src/main.c
@@ -84,6 +84,7 @@ static struct {
#if defined TIZEN_EXT
char **cellular_interfaces;
bool tizen_tv_extension;
+ bool use_gateway_timeserver;
#endif
} connman_settings = {
.bg_scan = true,
@@ -105,6 +106,7 @@ static struct {
#if defined TIZEN_EXT
.cellular_interfaces = NULL,
.tizen_tv_extension = false,
+ .use_gateway_timeserver = false,
#endif
};
@@ -127,6 +129,7 @@ static struct {
#if defined TIZEN_EXT
#define CONF_CELLULAR_INTERFACE "NetworkCellularInterfaceList"
#define CONF_TIZEN_TV_EXT "TizenTVExtension"
+#define CONF_USE_GATEWAY_TIMESERVER "UseGatewayTimeserver"
#endif
static const char *supported_options[] = {
@@ -148,6 +151,7 @@ static const char *supported_options[] = {
#if defined TIZEN_EXT
CONF_CELLULAR_INTERFACE,
CONF_TIZEN_TV_EXT,
+ CONF_USE_GATEWAY_TIMESERVER,
#endif
NULL
};
@@ -285,6 +289,13 @@ static void check_Tizen_configuration(GKeyFile *config)
connman_settings.tizen_tv_extension = boolean;
g_clear_error(&error);
+
+ boolean = __connman_config_get_bool(config, "General",
+ CONF_USE_GATEWAY_TIMESERVER, &error);
+ if (!error)
+ connman_settings.use_gateway_timeserver = boolean;
+
+ g_clear_error(&error);
}
static void set_nofile_inc(void)
@@ -679,6 +690,11 @@ bool connman_setting_get_bool(const char *key)
if (g_str_equal(key, CONF_ENABLE_ONLINE_CHECK))
return connman_settings.enable_online_check;
+#if defined TIZEN_EXT
+ if (g_str_equal(key, CONF_USE_GATEWAY_TIMESERVER))
+ return connman_settings.use_gateway_timeserver;
+#endif
+
return false;
}