summaryrefslogtreecommitdiffstats
path: root/binding-bluetooth/bluetooth-api.c
AgeCommit message (Collapse)AuthorFilesLines
2018-09-28binding: bluetooth: report HFPConnected statusMatt Ranostay1-3/+7
Due to ofono code removal the HFPConnected status wasn't being reported to clients that depended on it. Ideally this needs to be in agl-service-telephony binding, but till then just report HFP as 'connected' if both device is connected and has the HFP UUID in the advertised services. Bug-AGL: SPEC-1765 Change-Id: I6a1c5afe1d89a6ac6a4e84b07777d04368a4e772 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-09-15binding: bluetooth: add version verbMatt Ranostay1-0/+10
Add version verb to allow middleware and application to know which verb schema to use in the future. Bug-AGL: SPEC-1736 Change-Id: Ie18871836b86cd5fed54e44ddf957e34d8e1b606 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-09-14binding: bluetooth: add adapter parameter to JSON outputguppy_6.90.0guppy/6.90.06.90.0Matt Ranostay1-5/+9
Allow subscribers to get the respective devices adapter from a BlueZ path Bug-AGL: SPEC-1720 Change-Id: Ie7fc43558d386bb010f34e64e967c0bf0f054b45 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-09-04binding: bluetooth: provide complete BlueZ object pathflounder_5.99.6flounder/5.99.65.99.6Matt Ranostay1-4/+4
Provide complete path to BlueZ object from dbus so clients can deduce which adapter is being used for that paired device. Change-Id: Ic26c028eaec4cb7f85739d248e21773214c83d3a Bug-AGL: SPEC-1720 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-05-15Remove reference to <afb/afb-service-itf.h>flounder_5.99.2flounder_5.99.1flounder/5.99.2flounder/5.99.15.99.25.99.1José Bollo1-1/+0
Change-Id: Iddf7d0ae298b2e94c35199b1444d344dc0703a5a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-04-19binding: bluetooth: discovery_result response refactoredMatt Ranostay1-1/+4
Put the json array into a single entry map to make it consistant with other binding APIs and verbs. This also makes libqtappfw access for response data much easier Bug-AGL: SPEC-1385 Change-Id: I2eeb6ead1e386503a765dc1e252c969bb647eeee Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-04-09binding: bluetooth: clean up array of struct afb_verb_v2Matt Ranostay1-17/+17
AFB_SESSION_NONE is defined as zero so it doesn't need to be explicitly set. Change-Id: I63e072d211b1f21c294966144dd2d8ef025eaeed Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-09-12Fix initialisationeel_4.99.3eel_4.99.2eel_4.99.1eel/4.99.3eel/4.99.2eel/4.99.14.99.34.99.24.99.1José Bollo1-3/+2
The binder now enforces creation of event inside init and forbid their creation in preinit. This evolution solves the issue as all initialisation is made in init. Change-Id: Ib5a41382ace47cbc387f0bce71bf7f198fea47ea Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-08-22binding: bluetooth: add verb to export paired device prioritiesMatt Ranostay1-0/+14
Add device_priorities verb to export paired device priorities in an array. Bug-AGL: SPEC-839 Change-Id: I83dc17a2a8f755235b0b35a12d2cae8388b69c85 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-08-08binding: bluetooth: make exposed verbs more consistent with other bindingsMatt Ranostay1-93/+34
Remove client requirement they register new events, and make subscription verbs more consistent with other bindings Bug-AGL: SPEC-819 Change-Id: Ica2431690b4e6f24ec3b3e67dba14375298b2f56 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-08-08binding: bluetooth: switch to v2 binding formatMatt Ranostay1-48/+37
Update functions and structure to use the new version 2 of the afm binder framework Bug-AGL: SPEC-817 Change-Id: I102a31d0bf19458170b624013b18a6a5d7f9a28b Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-07-27binding: bluetooth: listen for rfkill bluetooth eventsMatt Ranostay1-6/+0
On certain platforms like RPI3 and Porter there is a possible race condition to systemd-rfkill service if using a USB BT device, and this patchset listens for rfkill events, unblocks and brings up hci interface. Bug-AGL: SPEC-569 Change-Id: Id16f26953d17cbe2068807b538c52759016d3e50 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-07-21binding: bluetooth: remove race condition workaroundMatt Ranostay1-5/+1
Workaround that was likely in place to avoid the Settings applications UI from loading before all binding functionality was enabled. Bug-AGL: SPEC-569 Change-Id: I7c4bc7614192cb09cace555acf77f27fbda0c42a Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-06-30binding: bluetooth: fix missed uuid in device_disconnect callMatt Ranostay1-1/+1
UUID if defined wasn't being passed to the device_disconnect function call resulting in a total device disconnect. Bug-AGL: SPEC-714 Change-Id: I04f0fcdfae703aaea90a4bf7b17ea0354a3ab845 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-06-30binding: bluetooth: make system wide serviceMatt Ranostay1-0/+965
Allow Bluetooth binding to be build separately and installed as a system wide service Bug-AGL: SPEC-661 SPEC-715 Change-Id: I12feefa2908243aa3bdcb0341f9bc9654c23741e Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>