diff options
author | Alok Barsode <alok.barsode@linux.intel.com> | 2012-02-03 20:26:00 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-02-04 01:15:36 +0100 |
commit | 8f3c51386929c432af4d78c1e8ab1d82a1f6ac8b (patch) | |
tree | 5c4f10d0a52f75cb8ddf2da311b29a6460accabd /src/connman.h | |
parent | 1db29a8c79e10f801d8d9ce0c861bf8b0a972f4d (diff) | |
download | connman-8f3c51386929c432af4d78c1e8ab1d82a1f6ac8b.tar.gz connman-8f3c51386929c432af4d78c1e8ab1d82a1f6ac8b.tar.bz2 connman-8f3c51386929c432af4d78c1e8ab1d82a1f6ac8b.zip |
Add __connman_timerserver_sync() to resolve a list of timeservers
__connman_timerserver_sync() resolves system timeservers one at a time
and queries the resolved server or the 1st of the resolved servers for
time correction. If the resolution fails it resolves the next one.
__connman_timerserver_sync_next() resolves the next system timeserver.
__connman_timerserver_stop() stops this query.If the user modifies the
system timeserver list, we restart the ntp process.
Diffstat (limited to 'src/connman.h')
-rw-r--r-- | src/connman.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/connman.h b/src/connman.h index 5c635030..dcde0f33 100644 --- a/src/connman.h +++ b/src/connman.h @@ -321,6 +321,10 @@ void __connman_timeserver_cleanup(void); char **__connman_timeserver_system_get(); +int __connman_timeserver_sync(struct connman_service *service); +void __connman_timeserver_sync_next(); +void __connman_timeserver_stop(); + typedef void (* dhcp_cb) (struct connman_network *network, connman_bool_t success); int __connman_dhcp_start(struct connman_network *network, dhcp_cb callback); |