aboutsummaryrefslogtreecommitdiffstats
path: root/src/storage.h
diff options
context:
space:
mode:
authorJaikumar Ganesh <jaikumar@google.com>2009-10-29 13:19:51 -0700
committerJohan Hedberg <johan.hedberg@nokia.com>2009-10-29 23:10:15 +0200
commite9071e3bfdf24666ff126d0023f3f4cf2ca74b2f (patch)
tree393f02914bd0e9a20d9d25e7d6b849ca3600747c /src/storage.h
parent45806a9b07eb6bc83cf9ccfd87288e021c702730 (diff)
downloadbluez-e9071e3bfdf24666ff126d0023f3f4cf2ca74b2f.tar.gz
bluez-e9071e3bfdf24666ff126d0023f3f4cf2ca74b2f.tar.xz
bluez-e9071e3bfdf24666ff126d0023f3f4cf2ca74b2f.zip
Fix deleting SDP records when a device is removed
This fixes the issues of stale SDP records, when the SDP records are modified on the remote end, before the next connection. Since we are going to perform SDP on the next connection anyway, this doesn't introduce any new overheads.
Diffstat (limited to 'src/storage.h')
-rw-r--r--src/storage.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/storage.h b/src/storage.h
index 3159f2a8..6e401513 100644
--- a/src/storage.h
+++ b/src/storage.h
@@ -63,6 +63,7 @@ int store_record(const gchar *src, const gchar *dst, sdp_record_t *rec);
sdp_record_t *record_from_string(const gchar *str);
sdp_record_t *fetch_record(const gchar *src, const gchar *dst, const uint32_t handle);
int delete_record(const gchar *src, const gchar *dst, const uint32_t handle);
+void delete_all_records(bdaddr_t *src, bdaddr_t *dst);
sdp_list_t *read_records(bdaddr_t *src, bdaddr_t *dst);
sdp_record_t *find_record_in_list(sdp_list_t *recs, const char *uuid);
int store_device_id(const gchar *src, const gchar *dst,