diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2013-09-19 16:00:42 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-09-23 10:42:59 +0300 |
commit | 3a34949d8517f36cab898a87628ccf3818431980 (patch) | |
tree | 07708124aecfe958a31c66ca233bef1a57d85f27 /profiles/health | |
parent | 6ae04b357f83d5e932b2e088c2fb13168d9b9b60 (diff) | |
download | bluez-3a34949d8517f36cab898a87628ccf3818431980.tar.gz |
adapter: Handle adding new 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_util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/profiles/health/hdp_util.c b/profiles/health/hdp_util.c index b53f1dbc0..7748a908f 100644 --- a/profiles/health/hdp_util.c +++ b/profiles/health/hdp_util.c @@ -733,8 +733,7 @@ gboolean hdp_update_sdp_record(struct hdp_adapter *adapter, GSList *app_list) if (sdp_set_record_state(sdp_record, adapter->record_state++) < 0) goto fail; - if (add_record_to_server(adapter_get_address(adapter->btd_adapter), - sdp_record) < 0) + if (adapter_service_add(adapter->btd_adapter, sdp_record) < 0) goto fail; adapter->sdp_handler = sdp_record->handle; return TRUE; |