adapter: Add ConnectDevice method 17/204917/1
authorSzymon Janc <szymon.janc@codecoup.pl>
Mon, 19 Feb 2018 13:40:19 +0000 (14:40 +0100)
committerAmit Purwar <amit.purwar@samsung.com>
Mon, 15 Apr 2019 03:31:28 +0000 (09:01 +0530)
commiteea4304246950eea1375fbc37b55f7262e5c6939
tree44f0c0e3f3d5536a7109d5450f0171779ab02604
parent467a0297daa372e44f7108bdc0cb56399b87f59f
adapter: Add ConnectDevice method

This allows to connect device without doing general discovery. This is
needed for some of qualification tests where there is no general
discovery upfront and we need to do connection to device with provided
address.

Another usecase is for scenario where scanning happen on one controller
but connection handling on another.

New device object is announced only if physical connection was
successful. On success this method returns path to created device
object. After ConnectProfile return bluetoothd continue with
services discovery and profile connection.

This patch implements bare minimum properties needed for connection -
address and address type. If needed eg. for non-NFC based OOB it could
be extended with more options.

Change-Id: I08bbd114ac9c46bf377879694175c58d0e8fea02
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
doc/adapter-api.txt
src/adapter.c
src/device.c