diff options
author | Niraj Kumar Goit <niraj.g@samsung.com> | 2016-06-07 22:33:40 +0530 |
---|---|---|
committer | Niraj Kumar Goit <niraj.g@samsung.com> | 2016-06-10 03:18:19 -0700 |
commit | 28801fe078345fde58f934bbfee79b5fb6f0d9bb (patch) | |
tree | c40ae40352643ac8ebcb1446b884197d4334d238 /src/clock.c | |
parent | 5b43a352de45aef79f48bd9baa555e6ec194fe78 (diff) | |
download | connman-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/clock.c')
-rwxr-xr-x | src/clock.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/clock.c b/src/clock.c index 0fde2c34..f04cf175 100755 --- a/src/clock.c +++ b/src/clock.c @@ -241,6 +241,11 @@ static DBusMessage *set_property(DBusConnection *conn, type = dbus_message_iter_get_arg_type(&value); if (g_str_equal(name, "Time")) { +#if defined TIZEN_EXT + /* Tizen updates time (ntp) by system service */ + + return __connman_error_permission_denied(msg); +#else struct timeval tv; dbus_uint64_t newval; @@ -261,6 +266,7 @@ static DBusMessage *set_property(DBusConnection *conn, connman_dbus_property_changed_basic(CONNMAN_MANAGER_PATH, CONNMAN_CLOCK_INTERFACE, "Time", DBUS_TYPE_UINT64, &newval); +#endif } else if (g_str_equal(name, "TimeUpdates")) { const char *strval; enum time_updates newval; |