summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2013-05-17 07:37:54 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-05-20 09:37:14 (GMT)
commitbd086f6ab14d5f59d170dc51e0c41e4d97705027 (patch)
treed712e27b27e6bb1e1ffc0ca4c979d902cd799cab /src
parent4010b9ccdcac5b9ce4d69857e5a0a26463ba9358 (diff)
downloadconnman-bd086f6ab14d5f59d170dc51e0c41e4d97705027.zip
connman-bd086f6ab14d5f59d170dc51e0c41e4d97705027.tar.gz
connman-bd086f6ab14d5f59d170dc51e0c41e4d97705027.tar.bz2
clock: Export information about time update method
Diffstat (limited to 'src')
-rw-r--r--src/clock.c11
-rw-r--r--src/connman.h7
2 files changed, 12 insertions, 6 deletions
diff --git a/src/clock.c b/src/clock.c
index e2cc19f..1c16d40 100644
--- a/src/clock.c
+++ b/src/clock.c
@@ -29,12 +29,6 @@
#include "connman.h"
-enum time_updates {
- TIME_UPDATES_UNKNOWN = 0,
- TIME_UPDATES_MANUAL = 1,
- TIME_UPDATES_AUTO = 2,
-};
-
enum timezone_updates {
TIMEZONE_UPDATES_UNKNOWN = 0,
TIMEZONE_UPDATES_MANUAL = 1,
@@ -94,6 +88,11 @@ static enum timezone_updates string2timezone_updates(const char *value)
return TIMEZONE_UPDATES_UNKNOWN;
}
+enum time_updates __connman_clock_timeupdates(void)
+{
+ return time_updates_config;
+}
+
static void append_timeservers(DBusMessageIter *iter, void *user_data)
{
int i;
diff --git a/src/connman.h b/src/connman.h
index b63e658..1e6bfec 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -56,6 +56,13 @@ DBusMessage *__connman_error_invalid_property(DBusMessage *msg);
int __connman_manager_init(void);
void __connman_manager_cleanup(void);
+enum time_updates {
+ TIME_UPDATES_UNKNOWN = 0,
+ TIME_UPDATES_MANUAL = 1,
+ TIME_UPDATES_AUTO = 2,
+};
+
+enum time_updates __connman_clock_timeupdates(void);
int __connman_clock_init(void);
void __connman_clock_cleanup(void);