summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2013-09-19 16:00:43 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2013-09-23 10:43:01 +0300
commitf538355c3fb5ff12ac6df03c3bdc2453dad66716 (patch)
tree90262785ad728aa5d512e9a367f4195f3afb22ee /plugins
parent3a34949d8517f36cab898a87628ccf3818431980 (diff)
adapter: Handle removing of SDP records
Make adapter in charge of updating SDP database. This allow to decouple SDP of code used for notifying adapters about SDP database change.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gatt-example.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/gatt-example.c b/plugins/gatt-example.c
index b92694773..9b4187a5a 100644
--- a/plugins/gatt-example.c
+++ b/plugins/gatt-example.c
@@ -72,7 +72,7 @@ static void gatt_example_adapter_free(struct gatt_example_adapter *gadapter)
while (gadapter->sdp_handles != NULL) {
uint32_t handle = GPOINTER_TO_UINT(gadapter->sdp_handles->data);
- attrib_free_sdp(handle);
+ attrib_free_sdp(gadapter->adapter, handle);
gadapter->sdp_handles = g_slist_remove(gadapter->sdp_handles,
gadapter->sdp_handles->data);
}