diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-06-16 13:29:39 +0200 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-06-16 15:26:11 +0200 |
commit | 972d3cdce00e7d7a4a0c1025072c507db1fa2a31 (patch) | |
tree | 0125119346136e389e71e82c9f6d0e290cd7d86e | |
parent | b8418e40521e254758f0db46631db6316f717ed1 (diff) | |
download | connman-972d3cdce00e7d7a4a0c1025072c507db1fa2a31.tar.gz connman-972d3cdce00e7d7a4a0c1025072c507db1fa2a31.tar.bz2 connman-972d3cdce00e7d7a4a0c1025072c507db1fa2a31.zip |
timeserver: Do not use element driver API
-rw-r--r-- | include/timeserver.h | 4 | ||||
-rw-r--r-- | plugins/ntpd.c | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/include/timeserver.h b/include/timeserver.h index cb1ac9c9..c5019edf 100644 --- a/include/timeserver.h +++ b/include/timeserver.h @@ -26,6 +26,10 @@ extern "C" { #endif +#define CONNMAN_TIMESERVER_PRIORITY_LOW -100 +#define CONNMAN_TIMESERVER_PRIORITY_DEFAULT 0 +#define CONNMAN_TIMESERVER_PRIORITY_HIGH 100 + /** * SECTION:timeserver * @title: timeserver premitives diff --git a/plugins/ntpd.c b/plugins/ntpd.c index 7a762a80..d437ecbe 100644 --- a/plugins/ntpd.c +++ b/plugins/ntpd.c @@ -30,11 +30,13 @@ #include <string.h> #include <arpa/inet.h> +#include <gdbus.h> + #define CONNMAN_API_SUBJECT_TO_CHANGE +#include <connman/types.h> #include <connman/plugin.h> #include <connman/task.h> #include <connman/timeserver.h> -#include <connman/driver.h> #include <connman/log.h> /* @@ -303,7 +305,7 @@ remove: static struct connman_timeserver_driver ntpd_driver = { .name = "ntpd", - .priority = CONNMAN_DRIVER_PRIORITY_DEFAULT, + .priority = CONNMAN_TIMESERVER_PRIORITY_DEFAULT, .append = ntpd_append, .remove = ntpd_remove, .sync = ntpd_sync, |