summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2013-01-28 17:44:34 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-01-30 10:27:47 +0200
commitcd0d951025cec18bdec82d7c0847668cc6a151d2 (patch)
tree06da57e0579358efb93eae99320359a11156806f /plugins
parent7b3635c3f293a625e57bc0a3c6f54fdabcd0748e (diff)
downloadconnman-cd0d951025cec18bdec82d7c0847668cc6a151d2.tar.gz
connman-cd0d951025cec18bdec82d7c0847668cc6a151d2.tar.bz2
connman-cd0d951025cec18bdec82d7c0847668cc6a151d2.zip
bluetooth: Rename bluetooth plugin to bluetooth_legacy
Set the plugin priority to CONNMAN_PLUGIN_PRIORITY_LOW and the technology priority to -10. Update strings to "bluetooth_legacy" and use ordinary string instead of ident.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/bluetooth_legacy.c (renamed from plugins/bluetooth.c)15
1 files changed, 9 insertions, 6 deletions
diff --git a/plugins/bluetooth.c b/plugins/bluetooth_legacy.c
index 47343bb5..f03f2a00 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth_legacy.c
@@ -264,7 +264,7 @@ static int pan_disconnect(struct connman_network *network)
}
static struct connman_network_driver pan_driver = {
- .name = "bluetooth-pan",
+ .name = "bluetooth_legacy-pan",
.type = CONNMAN_NETWORK_TYPE_BLUETOOTH_PAN,
.probe = pan_probe,
.remove = pan_remove,
@@ -715,7 +715,8 @@ static void adapter_properties_reply(DBusPendingCall *call, void *user_data)
addr.ether_addr_octet[4],
addr.ether_addr_octet[5]);
- device = connman_device_create(ident, CONNMAN_DEVICE_TYPE_BLUETOOTH);
+ device = connman_device_create("bluetooth_legacy",
+ CONNMAN_DEVICE_TYPE_BLUETOOTH);
if (device == NULL)
goto done;
@@ -1058,7 +1059,7 @@ static int bluetooth_disable(struct connman_device *device)
}
static struct connman_device_driver bluetooth_driver = {
- .name = "bluetooth",
+ .name = "bluetooth_legacy",
.type = CONNMAN_DEVICE_TYPE_BLUETOOTH,
.probe = bluetooth_probe,
.remove = bluetooth_remove,
@@ -1228,8 +1229,9 @@ static int tech_set_tethering(struct connman_technology *technology,
}
static struct connman_technology_driver tech_driver = {
- .name = "bluetooth",
+ .name = "bluetooth_legacy",
.type = CONNMAN_SERVICE_TYPE_BLUETOOTH,
+ .priority = -10,
.probe = tech_probe,
.remove = tech_remove,
.set_tethering = tech_set_tethering,
@@ -1346,5 +1348,6 @@ static void bluetooth_exit(void)
dbus_connection_unref(connection);
}
-CONNMAN_PLUGIN_DEFINE(bluetooth, "Bluetooth technology plugin", VERSION,
- CONNMAN_PLUGIN_PRIORITY_DEFAULT, bluetooth_init, bluetooth_exit)
+CONNMAN_PLUGIN_DEFINE(bluetooth_legacy, "Bluetooth technology plugin (legacy)",
+ VERSION, CONNMAN_PLUGIN_PRIORITY_LOW,
+ bluetooth_init, bluetooth_exit)