Add priority field to plugin descriptor definition
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 28 Feb 2009 01:31:50 +0000 (02:31 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 28 Feb 2009 01:31:50 +0000 (02:31 +0100)
17 files changed:
include/plugin.h
plugins/bluetooth.c
plugins/dhclient.c
plugins/dnsproxy.c
plugins/ethernet.c
plugins/fake.c
plugins/hso.c
plugins/huawei.c
plugins/loopback.c
plugins/novatel.c
plugins/ospm.c
plugins/polkit.c
plugins/pppd.c
plugins/resolvconf.c
plugins/udhcp.c
plugins/wifi.c
plugins/wimax.c

index 350937e..059c50a 100644 (file)
@@ -78,10 +78,9 @@ struct connman_plugin_desc {
  *                                     example_init, example_exit)
  * ]|
  */
-#define CONNMAN_PLUGIN_DEFINE(name, description, version, init, exit) \
+#define CONNMAN_PLUGIN_DEFINE(name, description, version, priority, init, exit) \
                struct connman_plugin_desc connman_plugin_desc = { \
-                       #name, description, version, \
-                       CONNMAN_PLUGIN_PRIORITY_DEFAULT, init, exit \
+                       #name, description, version, priority, init, exit \
                };
 
 #ifdef __cplusplus
index 25dc0ca..12519c5 100644 (file)
@@ -849,4 +849,4 @@ static void bluetooth_exit(void)
 }
 
 CONNMAN_PLUGIN_DEFINE(bluetooth, "Bluetooth technology plugin", VERSION,
-                                               bluetooth_init, bluetooth_exit)
+               CONNMAN_PLUGIN_PRIORITY_DEFAULT, bluetooth_init, bluetooth_exit)
index cb0e875..7e5e6d0 100644 (file)
@@ -364,4 +364,4 @@ static void dhclient_exit(void)
 }
 
 CONNMAN_PLUGIN_DEFINE(dhclient, "ISC DHCP client plugin", VERSION,
-                                               dhclient_init, dhclient_exit)
+               CONNMAN_PLUGIN_PRIORITY_DEFAULT, dhclient_init, dhclient_exit)
index c97553d..ee65f03 100644 (file)
@@ -383,4 +383,4 @@ static void dnsproxy_exit(void)
 }
 
 CONNMAN_PLUGIN_DEFINE(dnsproxy, "DNS proxy resolver plugin", VERSION,
-                                               dnsproxy_init, dnsproxy_exit)
+                CONNMAN_PLUGIN_PRIORITY_DEFAULT, dnsproxy_init, dnsproxy_exit)
index 4ef163c..79ddf2b 100644 (file)
@@ -150,4 +150,4 @@ static void ethernet_exit(void)
 }
 
 CONNMAN_PLUGIN_DEFINE(ethernet, "Ethernet interface plugin", VERSION,
-                                               ethernet_init, ethernet_exit)
+               CONNMAN_PLUGIN_PRIORITY_DEFAULT, ethernet_init, ethernet_exit)
index 4f57837..8a271be 100644 (file)
@@ -106,4 +106,5 @@ static void fake_exit(void)
        connman_device_driver_unregister(&device_driver);
 }
 
-CONNMAN_PLUGIN_DEFINE(fake, "Tesing plugin", VERSION, fake_init, fake_exit)
+CONNMAN_PLUGIN_DEFINE(fake, "Tesing plugin", VERSION,
+               CONNMAN_PLUGIN_PRIORITY_DEFAULT, fake_init, fake_exit)
index 9489cf1..21df00d 100644 (file)
@@ -243,4 +243,4 @@ static void hso_exit(void)
 }
 
 CONNMAN_PLUGIN_DEFINE(hso, "Option HSO device plugin", VERSION,
-                                               hso_init, hso_exit)
+               CONNMAN_PLUGIN_PRIORITY_DEFAULT, hso_init, hso_exit)
index c165aea..c1a2c0d 100644 (file)
@@ -80,4 +80,4 @@ static void huawei_exit(void)
 }
 
 CONNMAN_PLUGIN_DEFINE(huawei, "HUAWEI Mobile device plugin", VERSION,
-                                               huawei_init, huawei_exit)
+               CONNMAN_PLUGIN_PRIORITY_DEFAULT, huawei_init, huawei_exit)
index c0a8f3b..7607eea 100644 (file)
@@ -106,4 +106,4 @@ static void loopback_exit(void)
 }
 
 CONNMAN_PLUGIN_DEFINE(loopback, "Loopback device plugin", VERSION,
-                                               loopback_init, loopback_exit)
+               CONNMAN_PLUGIN_PRIORITY_HIGH, loopback_init, loopback_exit)
index b1d7bb4..4c0c9aa 100644 (file)
@@ -80,4 +80,4 @@ static void novatel_exit(void)
 }
 
 CONNMAN_PLUGIN_DEFINE(novatel, "Novatel Wireless device plugin", VERSION,
-                                               novatel_init, novatel_exit)
+               CONNMAN_PLUGIN_PRIORITY_DEFAULT, novatel_init, novatel_exit)
index 87f18c6..7d2ebf5 100644 (file)
@@ -37,4 +37,4 @@ static void ospm_exit(void)
 }
 
 CONNMAN_PLUGIN_DEFINE(ospm, "OSPM notification plugin", VERSION,
-                                                       ospm_init, ospm_exit)
+               CONNMAN_PLUGIN_PRIORITY_DEFAULT, ospm_init, ospm_exit)
index 247721e..16dd9d5 100644 (file)
@@ -176,4 +176,4 @@ static void polkit_exit(void)
 }
 
 CONNMAN_PLUGIN_DEFINE(polkit, "PolicyKit authorization plugin", VERSION,
-                                               polkit_init, polkit_exit)
+               CONNMAN_PLUGIN_PRIORITY_DEFAULT, polkit_init, polkit_exit)
index 3cd65bf..bd026b9 100644 (file)
@@ -58,4 +58,4 @@ static void pppd_exit(void)
 }
 
 CONNMAN_PLUGIN_DEFINE(pppd, "Point-to-point protocol plugin", VERSION,
-                                                       pppd_init, pppd_exit)
+               CONNMAN_PLUGIN_PRIORITY_DEFAULT, pppd_init, pppd_exit)
index d59fc5e..df3a834 100644 (file)
@@ -94,4 +94,4 @@ static void resolvconf_exit(void)
 }
 
 CONNMAN_PLUGIN_DEFINE(resolvconf, "Name resolver plugin", VERSION,
-                                       resolvconf_init, resolvconf_exit)
+               CONNMAN_PLUGIN_PRIORITY_DEFAULT, resolvconf_init, resolvconf_exit)
index f58f833..36ea23f 100644 (file)
@@ -212,4 +212,4 @@ static void udhcp_exit(void)
 }
 
 CONNMAN_PLUGIN_DEFINE(udhcp, "uDHCP client plugin", VERSION,
-                                               udhcp_init, udhcp_exit)
+               CONNMAN_PLUGIN_PRIORITY_DEFAULT, udhcp_init, udhcp_exit)
index 92e5787..a86b00e 100644 (file)
@@ -189,4 +189,4 @@ static void wifi_exit(void)
 }
 
 CONNMAN_PLUGIN_DEFINE(wifi, "WiFi interface plugin", VERSION,
-                                                       wifi_init, wifi_exit)
+               CONNMAN_PLUGIN_PRIORITY_DEFAULT, wifi_init, wifi_exit)
index e008dc9..1509e74 100644 (file)
@@ -74,4 +74,4 @@ static void wimax_exit(void)
 }
 
 CONNMAN_PLUGIN_DEFINE(wimax, "WiMAX interface plugin", VERSION,
-                                               wimax_init, wimax_exit)
+               CONNMAN_PLUGIN_PRIORITY_DEFAULT, wimax_init, wimax_exit)