diff options
author | Alok Barsode <alok.barsode@linux.intel.com> | 2012-02-03 20:26:02 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-02-04 01:15:36 +0100 |
commit | d92c0506baf62cce92341b42e705b1c237959df1 (patch) | |
tree | 28c88fcb58fb6a7fcfa65ef7d37e350d40164d6b /src/service.c | |
parent | f97c14e2606c64df0ae23c81a8a4066d27367091 (diff) | |
download | connman-d92c0506baf62cce92341b42e705b1c237959df1.tar.gz connman-d92c0506baf62cce92341b42e705b1c237959df1.tar.bz2 connman-d92c0506baf62cce92341b42e705b1c237959df1.zip |
timeserver: Use service timeserver, if any, before system timeservers
Diffstat (limited to 'src/service.c')
-rw-r--r-- | src/service.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c index 2fe93fce..a61824f1 100644 --- a/src/service.c +++ b/src/service.c @@ -2154,6 +2154,17 @@ char **connman_service_get_nameservers(struct connman_service *service) return NULL; } +char **connman_service_get_timeservers(struct connman_service *service) +{ + if (service == NULL) + return NULL; + + if (service->timeservers != NULL) + return service->timeservers; + + return NULL; +} + void connman_service_set_proxy_method(struct connman_service *service, enum connman_service_proxy_method method) { |