summaryrefslogtreecommitdiffstats
path: root/src/adapter.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-11-20 16:33:30 -0300
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-11-20 16:33:30 -0300
commit0c561f77956654c654f14daea35e90ad0ba20164 (patch)
tree9d7b21d086aa161c321a3d4c187c63c16cf1781d /src/adapter.h
parent99b4f5685edd040b4782341bfb0f2da889264888 (diff)
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)
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 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);