bluetooth: Rename bluetooth plugins
authorClaudio Takahasi <claudio.takahasi@openbossa.org>
Wed, 16 Jan 2013 13:31:27 +0000 (10:31 -0300)
committerDenis Kenzior <denkenz@gmail.com>
Wed, 16 Jan 2013 19:37:23 +0000 (13:37 -0600)
As BlueZ 5 introduced backwards incompatible API changes, and we want to
keep support for BlueZ 4 based plugins for some time, we need to separate
the plugins that are based on BlueZ 4 from the ones based on BlueZ 5.

The bluetooth.c plugin has now been renamed to bluez4.c and the hfp_hf.c
plugin is renamed to hfp_hf_bluez4.  This will make it easy to add a
HFP HF plugin for BlueZ 5.

Makefile.am
dundee/bluetooth.c
plugins/bluez4.c [moved from plugins/bluetooth.c with 99% similarity]
plugins/bluez4.h [moved from plugins/bluetooth.h with 100% similarity]
plugins/dun_gw.c
plugins/hfp_ag.c
plugins/hfp_hf_bluez4.c [moved from plugins/hfp_hf.c with 99% similarity]
plugins/sap.c
plugins/telit.c

index c2bd4a4..63e6fdb 100644 (file)
@@ -409,23 +409,23 @@ builtin_sources += plugins/sim900.c
 
 if BLUETOOTH
 if BLUEZ4
-builtin_modules += bluetooth
-builtin_sources += plugins/bluetooth.c plugins/bluetooth.h
+builtin_modules += bluez4
+builtin_sources += plugins/bluez4.c plugins/bluez4.h
 
 builtin_modules += telit
-builtin_sources += plugins/telit.c plugins/bluetooth.h
+builtin_sources += plugins/telit.c plugins/bluez4.h
 
 builtin_modules += sap
-builtin_sources += plugins/sap.c plugins/bluetooth.h
+builtin_sources += plugins/sap.c plugins/bluez4.h
 
-builtin_modules += hfp
-builtin_sources += plugins/hfp_hf.c plugins/bluetooth.h
+builtin_modules += hfp_bluez4
+builtin_sources += plugins/hfp_hf_bluez4.c plugins/bluez4.h
 
 builtin_modules += hfp_ag
-builtin_sources += plugins/hfp_ag.c plugins/bluetooth.h
+builtin_sources += plugins/hfp_ag.c plugins/bluez4.h
 
 builtin_modules += dun_gw
-builtin_sources += plugins/dun_gw.c plugins/bluetooth.h
+builtin_sources += plugins/dun_gw.c plugins/bluez4.h
 
 builtin_modules += connman
 builtin_sources += plugins/connman.c
@@ -750,7 +750,7 @@ if DUNDEE
 sbin_PROGRAMS += dundee/dundee
 
 dundee_dundee_SOURCES = $(gdbus_sources) $(gatchat_sources) $(btio_sources) \
-                       src/log.c src/dbus.c plugins/bluetooth.c \
+                       src/log.c src/dbus.c plugins/bluez4.c \
                        dundee/dundee.h dundee/main.c dundee/dbus.c \
                        dundee/manager.c dundee/device.c dundee/bluetooth.c
 
index 9ddc72c..58355d3 100644 (file)
@@ -32,7 +32,7 @@
 
 #include <glib.h>
 
-#include "plugins/bluetooth.h"
+#include "plugins/bluez4.h"
 
 #include "dundee.h"
 
similarity index 99%
rename from plugins/bluetooth.c
rename to plugins/bluez4.c
index 5d28530..6a29d9f 100644 (file)
@@ -37,7 +37,7 @@
 #include <ofono/log.h>
 
 #include <btio.h>
-#include "bluetooth.h"
+#include "bluez4.h"
 
 static DBusConnection *connection;
 static GHashTable *uuid_hash = NULL;
@@ -985,5 +985,5 @@ void bluetooth_unregister_server(struct server *server)
        bluetooth_unref();
 }
 
-OFONO_PLUGIN_DEFINE(bluetooth, "Bluetooth Utils Plugins", VERSION,
-                       OFONO_PLUGIN_PRIORITY_DEFAULT, NULL, NULL)
+OFONO_PLUGIN_DEFINE(bluez4, "Bluetooth Utils Plugins", VERSION,
+                               OFONO_PLUGIN_PRIORITY_DEFAULT, NULL, NULL)
similarity index 100%
rename from plugins/bluetooth.h
rename to plugins/bluez4.h
index 75b62eb..fc8bde4 100644 (file)
@@ -33,7 +33,7 @@
 #include <ofono/modem.h>
 #include <gdbus.h>
 
-#include "bluetooth.h"
+#include "bluez4.h"
 
 #define DUN_GW_CHANNEL 1
 
index c2d1d30..12374ad 100644 (file)
@@ -33,7 +33,7 @@
 #include <ofono/modem.h>
 #include <gdbus.h>
 
-#include "bluetooth.h"
+#include "bluez4.h"
 
 #define HFP_AG_CHANNEL 13
 
similarity index 99%
rename from plugins/hfp_hf.c
rename to plugins/hfp_hf_bluez4.c
index 7c500e3..450c183 100644 (file)
@@ -47,7 +47,7 @@
 
 #include <drivers/hfpmodem/slc.h>
 
-#include "bluetooth.h"
+#include "bluez4.h"
 
 #define        BLUEZ_GATEWAY_INTERFACE         BLUEZ_SERVICE ".HandsfreeGateway"
 
@@ -548,5 +548,5 @@ static void hfp_exit(void)
        g_hash_table_destroy(modem_hash);
 }
 
-OFONO_PLUGIN_DEFINE(hfp, "Hands-Free Profile Plugins", VERSION,
+OFONO_PLUGIN_DEFINE(hfp_bluez4, "Hands-Free Profile Plugins", VERSION,
                        OFONO_PLUGIN_PRIORITY_DEFAULT, hfp_init, hfp_exit)
index d893bc1..d1913fb 100644 (file)
@@ -37,7 +37,7 @@
 #include <ofono/log.h>
 #include <ofono/modem.h>
 
-#include "bluetooth.h"
+#include "bluez4.h"
 #include "util.h"
 
 #ifndef DBUS_TYPE_UNIX_FD
index 79bc421..392283a 100644 (file)
@@ -58,7 +58,7 @@
 #include <drivers/atmodem/atutil.h>
 #include <drivers/atmodem/vendor.h>
 
-#include "bluetooth.h"
+#include "bluez4.h"
 
 static const char *none_prefix[] = { NULL };
 static const char *rsen_prefix[]= { "#RSEN:", NULL };