summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2013-01-16 10:31:27 -0300
committerDenis Kenzior <denkenz@gmail.com>2013-01-16 13:37:23 -0600
commitcaad5322f6117ab53bacc5d1999b055f7839beab (patch)
tree810492d01e6b16eaf7f953b33d480d927d7add84
parent145112dad26f79c8d8eaa9f0f1411a49b6fb7001 (diff)
downloadofono-caad5322f6117ab53bacc5d1999b055f7839beab.tar.bz2
bluetooth: Rename bluetooth plugins
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.
-rw-r--r--Makefile.am18
-rw-r--r--dundee/bluetooth.c2
-rw-r--r--plugins/bluez4.c (renamed from plugins/bluetooth.c)6
-rw-r--r--plugins/bluez4.h (renamed from plugins/bluetooth.h)0
-rw-r--r--plugins/dun_gw.c2
-rw-r--r--plugins/hfp_ag.c2
-rw-r--r--plugins/hfp_hf_bluez4.c (renamed from plugins/hfp_hf.c)4
-rw-r--r--plugins/sap.c2
-rw-r--r--plugins/telit.c2
9 files changed, 19 insertions, 19 deletions
diff --git a/Makefile.am b/Makefile.am
index c2bd4a4a..63e6fdb6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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
diff --git a/dundee/bluetooth.c b/dundee/bluetooth.c
index 9ddc72c9..58355d31 100644
--- a/dundee/bluetooth.c
+++ b/dundee/bluetooth.c
@@ -32,7 +32,7 @@
#include <glib.h>
-#include "plugins/bluetooth.h"
+#include "plugins/bluez4.h"
#include "dundee.h"
diff --git a/plugins/bluetooth.c b/plugins/bluez4.c
index 5d28530e..6a29d9fa 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluez4.c
@@ -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)
diff --git a/plugins/bluetooth.h b/plugins/bluez4.h
index 4fc16adf..4fc16adf 100644
--- a/plugins/bluetooth.h
+++ b/plugins/bluez4.h
diff --git a/plugins/dun_gw.c b/plugins/dun_gw.c
index 75b62ebf..fc8bde43 100644
--- a/plugins/dun_gw.c
+++ b/plugins/dun_gw.c
@@ -33,7 +33,7 @@
#include <ofono/modem.h>
#include <gdbus.h>
-#include "bluetooth.h"
+#include "bluez4.h"
#define DUN_GW_CHANNEL 1
diff --git a/plugins/hfp_ag.c b/plugins/hfp_ag.c
index c2d1d306..12374ad8 100644
--- a/plugins/hfp_ag.c
+++ b/plugins/hfp_ag.c
@@ -33,7 +33,7 @@
#include <ofono/modem.h>
#include <gdbus.h>
-#include "bluetooth.h"
+#include "bluez4.h"
#define HFP_AG_CHANNEL 13
diff --git a/plugins/hfp_hf.c b/plugins/hfp_hf_bluez4.c
index 7c500e36..450c183e 100644
--- a/plugins/hfp_hf.c
+++ b/plugins/hfp_hf_bluez4.c
@@ -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)
diff --git a/plugins/sap.c b/plugins/sap.c
index d893bc12..d1913fb5 100644
--- a/plugins/sap.c
+++ b/plugins/sap.c
@@ -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
diff --git a/plugins/telit.c b/plugins/telit.c
index 79bc4219..392283aa 100644
--- a/plugins/telit.c
+++ b/plugins/telit.c
@@ -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 };