summaryrefslogtreecommitdiff
path: root/include/timeserver.h
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2010-05-31 15:05:58 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2010-05-31 17:39:37 +0200
commitdba90159b8bf8f065fcbce48432ef5da36a0c5ce (patch)
treea8d6d8480e00ecb0cf3c945235ae462ba6ebeaf3 /include/timeserver.h
parent679bb7a005c773149de0760a10c1935aab0fa24f (diff)
downloadconnman-dba90159b8bf8f065fcbce48432ef5da36a0c5ce.tar.gz
connman-dba90159b8bf8f065fcbce48432ef5da36a0c5ce.tar.bz2
connman-dba90159b8bf8f065fcbce48432ef5da36a0c5ce.zip
Complete timeserver API
The timeserver API now includes a sync() call in order to separate timeserver peer addition from actual time syncing.
Diffstat (limited to 'include/timeserver.h')
-rw-r--r--include/timeserver.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/timeserver.h b/include/timeserver.h
index d2863e86..f1b5c9c8 100644
--- a/include/timeserver.h
+++ b/include/timeserver.h
@@ -32,14 +32,16 @@ extern "C" {
* @short_description: Functions for handling time servers (including NTP)
*/
-int connman_timeserver_append(const char *server);
-int connman_timeserver_remove(const char *server);
+int connman_timeserver_append(char *server);
+int connman_timeserver_remove(char *server);
+void connman_timeserver_sync(void);
struct connman_timeserver_driver {
const char *name;
int priority;
- int (*append) (const char *server);
- int (*remove) (const char *server);
+ int (*append) (char *server);
+ int (*remove) (char *server);
+ void (*sync) (void);
};
int connman_timeserver_driver_register(struct connman_timeserver_driver *driver);