summaryrefslogtreecommitdiff
path: root/src/adapter.h
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2017-10-18 03:58:05 +0200
committerSzymon Janc <szymon.janc@codecoup.pl>2017-10-27 09:58:06 +0200
commitc50a8a397d4abd994a9115230279d5fe922b4aa5 (patch)
tree496f43c82baea8a96145fe4a4f37308d85c44f28 /src/adapter.h
parentbdfe5fcee3c8a3013d4866ebf573abb1a3e342be (diff)
downloadbluez-c50a8a397d4abd994a9115230279d5fe922b4aa5.tar.gz
adapter: Add btd_request_authorization_cable_configured()
Add btd_request_authorization_cable_configured() function to allow cable configured devices to ask the user straight away about whether the device should be allowed to connect to the computer. This allows us to ask the user at the time of the USB connection and initial setup, rather than when the first Bluetooth connection is made. The fact that the device might not be connected to the adapter when this event is triggered is mentioned in the Agent API docs.
Diffstat (limited to 'src/adapter.h')
-rw-r--r--src/adapter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/adapter.h b/src/adapter.h
index f9178d59e..a85327cd1 100644
--- a/src/adapter.h
+++ b/src/adapter.h
@@ -120,6 +120,8 @@ int btd_register_adapter_driver(struct btd_adapter_driver *driver);
void btd_unregister_adapter_driver(struct btd_adapter_driver *driver);
guint btd_request_authorization(const bdaddr_t *src, const bdaddr_t *dst,
const char *uuid, service_auth_cb cb, void *user_data);
+guint btd_request_authorization_cable_configured(const bdaddr_t *src, const bdaddr_t *dst,
+ const char *uuid, service_auth_cb cb, void *user_data);
int btd_cancel_authorization(guint id);
int btd_adapter_restore_powered(struct btd_adapter *adapter);