From 0c561f77956654c654f14daea35e90ad0ba20164 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 20 Nov 2008 16:33:30 -0300 Subject: Introduce Pairable property. As the name suggest it tells when an adapter enter or leaves bondable mode, it works as follow: Pairable=true & Discoverable=true: limited IAC Pairable=true & Discoverable=false: pairable but inquiry scan disabled Pairable=false & Discoverable=true: inquiry scan enabled (with Generic IAC) but new pairings cannot be created (same as if there was no agent) Pairable=false & Discoverable=false: inquiry scan disabled & non-pairable (as if there was no agent) --- src/adapter.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/adapter.h') diff --git a/src/adapter.h b/src/adapter.h index 7d666a5b..eb206ac6 100644 --- a/src/adapter.h +++ b/src/adapter.h @@ -184,3 +184,5 @@ const char *adapter_any_get_path(void); const char *btd_adapter_any_request_path(void); void btd_adapter_any_release_path(void); +gboolean adapter_is_pairable(struct btd_adapter *adapter); +gboolean adapter_pairing_initiator(struct btd_adapter *adapter, bdaddr_t *bda); -- cgit