summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2016-10-12 12:26:10 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2016-10-21 07:47:31 +0300
commitee9f5c178453190a323e510face60085cf32ccfa (patch)
tree2a6bab7f07d93cd95bebdb5597188688d6df0f07 /tests
parentc41d3edda8cd25de5e88efb2b24a79fef60fa26d (diff)
Bluetooth: GATT: Pass CCC attribute to changed callback
This way the application can reuse the same callback for multiple CCC since it can track what CCC is affect by checking the attribute pointer. Change-Id: I608da643aea07de26b65d67e6db3268d717d0f53 Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/bluetooth/tester/src/gatt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bluetooth/tester/src/gatt.c b/tests/bluetooth/tester/src/gatt.c
index cbb9dfbef..03163f697 100644
--- a/tests/bluetooth/tester/src/gatt.c
+++ b/tests/bluetooth/tester/src/gatt.c
@@ -437,7 +437,7 @@ static bool ccc_added;
static struct bt_gatt_ccc_cfg ccc_cfg[CONFIG_BLUETOOTH_MAX_PAIRED] = {};
static uint8_t ccc_value;
-static void ccc_cfg_changed(uint16_t value)
+static void ccc_cfg_changed(const struct bt_gatt_attr *attr, uint16_t value)
{
ccc_value = value;
}