aboutsummaryrefslogtreecommitdiffstats
path: root/src/adapter.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-02-09 16:02:51 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-02-09 17:24:26 +0200
commit73f828cce2d2f7ceed92dd9ab584b4301b53f822 (patch)
treed0cbcfce8153c544dee18aa105c2059c20f9b4bd /src/adapter.c
parent6e5d3d78fcb2db8e4b502285879acc65fc983ea4 (diff)
downloadbluez-73f828cce2d2f7ceed92dd9ab584b4301b53f822.tar.gz
bluez-73f828cce2d2f7ceed92dd9ab584b4301b53f822.tar.xz
bluez-73f828cce2d2f7ceed92dd9ab584b4301b53f822.zip
adapter_opts: Add address type to block() and unblock()
Diffstat (limited to 'src/adapter.c')
-rw-r--r--src/adapter.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/adapter.c b/src/adapter.c
index eb16c58e..60477bb7 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -2063,21 +2063,23 @@ static void load_devices(struct btd_adapter *adapter)
textfile_foreach(filename, create_stored_device_from_blocked, adapter);
}
-int btd_adapter_block_address(struct btd_adapter *adapter, bdaddr_t *bdaddr)
+int btd_adapter_block_address(struct btd_adapter *adapter, bdaddr_t *bdaddr,
+ addr_type_t type)
{
- return adapter_ops->block_device(adapter->dev_id, bdaddr);
+ return adapter_ops->block_device(adapter->dev_id, bdaddr, type);
}
-int btd_adapter_unblock_address(struct btd_adapter *adapter, bdaddr_t *bdaddr)
+int btd_adapter_unblock_address(struct btd_adapter *adapter, bdaddr_t *bdaddr,
+ addr_type_t type)
{
- return adapter_ops->unblock_device(adapter->dev_id, bdaddr);
+ return adapter_ops->unblock_device(adapter->dev_id, bdaddr, type);
}
static void clear_blocked(struct btd_adapter *adapter)
{
int err;
- err = adapter_ops->unblock_device(adapter->dev_id, BDADDR_ANY);
+ err = adapter_ops->unblock_device(adapter->dev_id, BDADDR_ANY, 0);
if (err < 0)
error("Clearing blocked list failed: %s (%d)",
strerror(-err), -err);