timeserver: Do not use element driver API
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 16 Jun 2011 11:29:39 +0000 (13:29 +0200)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 16 Jun 2011 13:26:11 +0000 (15:26 +0200)
include/timeserver.h
plugins/ntpd.c

index cb1ac9c..c5019ed 100644 (file)
 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
index 7a762a8..d437ecb 100644 (file)
 #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,