summaryrefslogtreecommitdiffstats
path: root/hcid/storage.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/storage.c')
-rw-r--r--hcid/storage.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/hcid/storage.c b/hcid/storage.c
index 586d73f0..7c053cd5 100644
--- a/hcid/storage.c
+++ b/hcid/storage.c
@@ -691,3 +691,12 @@ int write_device_profiles(bdaddr_t *src, bdaddr_t *dst, const char *profiles)
ba2str(dst, addr);
return textfile_put(filename, addr, profiles);
}
+
+int delete_entry(bdaddr_t *src, const char *storage, const char *key)
+{
+ char filename[PATH_MAX + 1];
+
+ create_filename(filename, PATH_MAX, src, storage);
+
+ return textfile_del(filename, key);
+}