summaryrefslogtreecommitdiffstats
path: root/hcid/storage.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2008-03-12 21:54:25 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2008-03-12 21:54:25 +0000
commit25e819828847f241fe0f77565edf0dffad5700c9 (patch)
treef0fc852eff76cf366ad1ea7261b55773d62b60ea /hcid/storage.c
parent2b91b57b25ee05e55cb925ef0e6195785517cc60 (diff)
RemoveDevice: Removing stored data
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);
+}