aboutsummaryrefslogtreecommitdiffstats
path: root/src/storage.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2010-05-17 17:32:26 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2010-05-17 17:32:26 +0200
commit1e4d4fe0ed499adaf3e61b1e593dccd3c0928158 (patch)
treeb990d40549df8e7609176c7a9b0b024137084d25 /src/storage.h
parent38a7ef119c1ee1637a4f334dd055b8a171cdf148 (diff)
downloadbluez-1e4d4fe0ed499adaf3e61b1e593dccd3c0928158.tar.gz
bluez-1e4d4fe0ed499adaf3e61b1e593dccd3c0928158.tar.xz
bluez-1e4d4fe0ed499adaf3e61b1e593dccd3c0928158.zip
Add new "Blocked" property to device objects
This patch adds a new "Blocked" property to device objects. It maps directly to the HCIBLOCKDEV and HCIUNBLOCKDEV ioctl's which enable control of incoming connection acceptance on the kernel side.
Diffstat (limited to 'src/storage.h')
-rw-r--r--src/storage.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/storage.h b/src/storage.h
index ed507342..eee71d39 100644
--- a/src/storage.h
+++ b/src/storage.h
@@ -75,6 +75,9 @@ int read_device_id(const gchar *src, const gchar *dst,
uint16_t *product, uint16_t *version);
int write_device_pairable(bdaddr_t *local, gboolean mode);
int read_device_pairable(bdaddr_t *local, gboolean *mode);
+gboolean read_blocked(const bdaddr_t *local, const bdaddr_t *remote);
+int write_blocked(const bdaddr_t *local, const bdaddr_t *remote,
+ gboolean blocked);
#define PNP_UUID "00001200-0000-1000-8000-00805f9b34fb"