summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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 e2cc19fa..1c16d404 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 b63e6582..1e6bfec9 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);