bluetooth: Rename HFP AG plugin
PATCH 1/2 bluetooth: Rename HFP AG plugin
As BlueZ 5 introduced backwards incompatible API changes, and we want to keep support for BlueZ 4 based HFP AG plugin for some time, we need to separate HFP AG plugin which is based on BlueZ 4 from the one based on BlueZ 5.
The hfp_ag.c plugin is renamed to hfp_ag_bluez4. This will make it easy to add an HFP AG plugin for BlueZ 5.
---
Makefile.am | 4 ++--
plugins/{hfp_ag.c => hfp_ag_bluez4.c} | 5 +++--
2 files changed, 5 insertions(+), 4 deletions(-)
rename plugins/{hfp_ag.c => hfp_ag_bluez4.c} (97%)Makefile.am +2 -2
@@ -421,8 +421,8 @@ builtin_sources += plugins/sap.c plugins/bluez4.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/bluez4.h +builtin_modules += hfp_ag_bluez4 +builtin_sources += plugins/hfp_ag_bluez4.c plugins/bluez4.h builtin_modules += dun_gw builtin_sources += plugins/dun_gw.c plugins/bluez4.h
plugins/hfp_ag_bluez4.c renamed from plugins/hfp_ag.c +3 -2
@@ -213,5 +213,6 @@ static void hfp_ag_exit(void) } } -OFONO_PLUGIN_DEFINE (hfp_ag,"Hands-Free Audio Gateway Profile Plugins" ,VERSION , -OFONO_PLUGIN_PRIORITY_DEFAULT , hfp_ag_init, hfp_ag_exit) +OFONO_PLUGIN_DEFINE (hfp_ag_bluez4,"Hands-Free Audio Gateway Profile Plugins" , +VERSION ,OFONO_PLUGIN_PRIORITY_DEFAULT , + hfp_ag_init, hfp_ag_exit)
Signature · 1 line
1.7.9.5
PATCH 2/2 hfp_ag: Add BlueZ 5 version
This patch adds initial implementation of the D-Bus Profile1 interface and methods responsible for handling Bluetooth connections.
The HFP AG profile interface is registered as soon as a voice capable modem is registered in oFono.
--- Makefile.am | 3 + plugins/hfp_ag_bluez5.c | 269 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 272 insertions(+) create mode 100644 plugins/hfp_ag_bluez5.c
Makefile.am +3 -0
@@ -439,6 +439,9 @@ builtin_sources += plugins/bluez5.c plugins/bluez5.h builtin_modules += hfp_bluez5 builtin_sources += plugins/hfp_hf_bluez5.c plugins/bluez5.h + +builtin_modules += hfp_ag_bluez5 +builtin_sources += plugins/hfp_ag_bluez5.c plugins/bluez5.h endif endif endif
plugins/hfp_ag_bluez5.c new file +269 -0
269 lines not on this page · raw message
Signature · 1 line
1.7.9.5
Re: [PATCH 2/2] hfp_ag: Add BlueZ 5 version
Hi Frédéric,
Quoted 11 lines · Frédéric Danis
This patch adds initial implementation of the D-Bus Profile1 interface and methods responsible for handling Bluetooth connections.
The HFP AG profile interface is registered as soon as a voice capable modem is registered in oFono.
--- Makefile.am | 3 + plugins/hfp_ag_bluez5.c | 269 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 272 insertions(+)create mode 100644
plugins/hfp_ag_bluez5.c
Patch has been applied, thanks.
Regards,
-Denis
Hi Frédéric,
Quoted 5 lines · Frédéric Danis
As BlueZ 5 introduced backwards incompatible API changes, and we want to keep support for BlueZ 4 based HFP AG plugin for some time, we need to separate HFP AG plugin which is based on BlueZ 4 from the one based on BlueZ 5.
Quoted 7 lines
The
hfp_ag.cplugin is renamed tohfp_ag_bluez4. This will make it easy to add an HFP AG plugin for BlueZ 5.--- Makefile.am | 4 ++-- plugins/{hfp_ag.c => hfp_ag_bluez4.c} | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-)rename
plugins/{hfp_ag.c=>hfp_ag_bluez4.c} (97%)
Patch has been applied, thanks.
Regards,
-Denis