summaryrefslogtreecommitdiff
path: root/profiles/health
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 /profiles/health
parent3a34949d8517f36cab898a87628ccf3818431980 (diff)
downloadbluez-f538355c3fb5ff12ac6df03c3bdc2453dad66716.tar.gz
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 'profiles/health')
-rw-r--r--profiles/health/hdp.c2
-rw-r--r--profiles/health/hdp_util.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/profiles/health/hdp.c b/profiles/health/hdp.c
index 7f247560f..7b4e79954 100644
--- a/profiles/health/hdp.c
+++ b/profiles/health/hdp.c
@@ -1403,7 +1403,7 @@ void hdp_adapter_unregister(struct btd_adapter *adapter)
hdp_adapter = l->data;
adapters = g_slist_remove(adapters, hdp_adapter);
if (hdp_adapter->sdp_handler > 0)
- remove_record_from_server(hdp_adapter->sdp_handler);
+ adapter_service_remove(adapter, hdp_adapter->sdp_handler);
release_adapter_instance(hdp_adapter);
btd_adapter_unref(hdp_adapter->btd_adapter);
g_free(hdp_adapter);
diff --git a/profiles/health/hdp_util.c b/profiles/health/hdp_util.c
index 7748a908f..34e4671d3 100644
--- a/profiles/health/hdp_util.c
+++ b/profiles/health/hdp_util.c
@@ -693,7 +693,8 @@ gboolean hdp_update_sdp_record(struct hdp_adapter *adapter, GSList *app_list)
sdp_record_t *sdp_record;
if (adapter->sdp_handler > 0)
- remove_record_from_server(adapter->sdp_handler);
+ adapter_service_remove(adapter->btd_adapter,
+ adapter->sdp_handler);
if (app_list == NULL) {
adapter->sdp_handler = 0;