summaryrefslogtreecommitdiff
path: root/src/storage.h
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2012-07-27 16:43:12 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-07-29 20:02:39 +0200
commitbe5fd633a6976358e9c91f7bec87bccb05faafd2 (patch)
tree6c0c38c1c87f9efab392df96e924d83185700534 /src/storage.h
parent58a1819a44dd753ea14baea64e870e754ea6d8fc (diff)
downloadbluez-be5fd633a6976358e9c91f7bec87bccb05faafd2.tar.gz
storage: Make it clear that delete_entry only works for addresses
Also, delete_entry should try to erase both addresses styles, with and without address type, if not we may find some leftovers from deleted devices.
Diffstat (limited to 'src/storage.h')
-rw-r--r--src/storage.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/storage.h b/src/storage.h
index 07de39f4a..c5fabd17a 100644
--- a/src/storage.h
+++ b/src/storage.h
@@ -60,7 +60,8 @@ ssize_t read_pin_code(bdaddr_t *local, bdaddr_t *peer, char *pin);
gboolean read_trust(const bdaddr_t *local, const char *addr, const char *service);
int write_trust(const char *src, const char *addr, const char *service, gboolean trust);
int write_device_profiles(bdaddr_t *src, bdaddr_t *dst, const char *profiles);
-int delete_entry(bdaddr_t *src, const char *storage, const char *key);
+int delete_entry(bdaddr_t *src, const char *storage, bdaddr_t *dst,
+ uint8_t dst_type);
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);