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/storage.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/storage.h') 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" -- cgit