From 25e819828847f241fe0f77565edf0dffad5700c9 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Wed, 12 Mar 2008 21:54:25 +0000 Subject: RemoveDevice: Removing stored data --- hcid/storage.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'hcid/storage.c') 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); +} -- cgit