summaryrefslogtreecommitdiffstats
path: root/src/storage.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/storage.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/storage.h')
-rw-r--r--src/storage.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/storage.h b/src/storage.h
index 29f08d80..b6bedbed 100644
--- a/src/storage.h
+++ b/src/storage.h
@@ -68,6 +68,8 @@ int store_device_id(const gchar *src, const gchar *dst,
int read_device_id(const gchar *src, const gchar *dst,
uint16_t *source, uint16_t *vendor,
uint16_t *product, uint16_t *version);
+int write_device_pairable(bdaddr_t *local, gboolean mode);
+int read_device_pairable(bdaddr_t *local, gboolean *mode);
#define PNP_UUID "00001200-0000-1000-8000-00805f9b34fb"