aboutsummaryrefslogtreecommitdiffstats
path: root/src/storage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage.c')
-rw-r--r--src/storage.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/storage.c b/src/storage.c
index 7471b0f2..e4ad4abc 100644
--- a/src/storage.c
+++ b/src/storage.c
@@ -1305,3 +1305,14 @@ int write_device_ccc(bdaddr_t *local, bdaddr_t *peer, uint16_t handle,
return textfile_put(filename, key, config);
}
+
+void delete_device_ccc(bdaddr_t *local, bdaddr_t *peer)
+{
+ char filename[PATH_MAX + 1], addr[18];
+
+ ba2str(peer, addr);
+
+ /* Deleting all CCC values of a given address */
+ create_filename(filename, PATH_MAX, local, "ccc");
+ delete_by_pattern(filename, addr);
+}