summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorNiraj Kumar Goit <niraj.g@samsung.com>2016-06-07 22:33:40 +0530
committerNiraj Kumar Goit <niraj.g@samsung.com>2016-06-10 03:18:19 -0700
commit28801fe078345fde58f934bbfee79b5fb6f0d9bb (patch)
treec40ae40352643ac8ebcb1446b884197d4334d238 /src/main.c
parent5b43a352de45aef79f48bd9baa555e6ec194fe78 (diff)
downloadconnman-28801fe078345fde58f934bbfee79b5fb6f0d9bb.tar.gz
connman-28801fe078345fde58f934bbfee79b5fb6f0d9bb.tar.bz2
connman-28801fe078345fde58f934bbfee79b5fb6f0d9bb.zip
[SPIN] Enable the ntp by connman if device does not use the cellular.
desc : enable the ntp if the device is not using the cellualr(telephony). This ntp is controlled by net-config. After getting the timeinfo, connman call the alarm-manager's dbus method. Change-Id: I83272206654b6b64c968d5dbb69354e19e971f34 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Diffstat (limited to 'src/main.c')
-rwxr-xr-xsrc/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index c594adb2..5bd7e16b 100755
--- a/src/main.c
+++ b/src/main.c
@@ -721,7 +721,9 @@ int main(int argc, char *argv[])
__connman_proxy_init();
__connman_detect_init();
__connman_session_init();
+#if !defined TIZEN_EXT || defined TIZEN_CONNMAN_NTP
__connman_timeserver_init();
+#endif
__connman_connection_init();
__connman_plugin_init(option_plugin, option_noplugin);
@@ -753,7 +755,9 @@ int main(int argc, char *argv[])
__connman_plugin_cleanup();
__connman_provider_cleanup();
__connman_connection_cleanup();
+#if !defined TIZEN_EXT || defined TIZEN_CONNMAN_NTP
__connman_timeserver_cleanup();
+#endif
__connman_detect_cleanup();
__connman_proxy_cleanup();
__connman_task_cleanup();