summaryrefslogtreecommitdiff
path: root/src/storage.c
diff options
context:
space:
mode:
authorFrédéric Danis <frederic.danis@linux.intel.com>2012-12-13 21:39:19 +0100
committerJohan Hedberg <johan.hedberg@intel.com>2012-12-13 22:55:21 +0200
commitd534d9a26f7018d825111ca71c2682349a40ab65 (patch)
treeaa16a9a277f050d49615fcd2c25713f6518d6d45 /src/storage.c
parent2ff7ead49fae4ce2db0a5782bf8d0fad69ad4204 (diff)
downloadbluez-d534d9a26f7018d825111ca71c2682349a40ab65.tar.gz
device: Load profiles from storage
Add device_get_uuids() to retrieve UUIDs list. It will allow to call device_probe_profiles() from load_devices() of adapter.c after device creation. Remove write_device_profiles from storage.[ch].
Diffstat (limited to 'src/storage.c')
-rw-r--r--src/storage.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/storage.c b/src/storage.c
index 0b9ed2d51..74b19c09a 100644
--- a/src/storage.c
+++ b/src/storage.c
@@ -245,24 +245,6 @@ ssize_t read_pin_code(const bdaddr_t *local, const bdaddr_t *peer, char *pin)
return len;
}
-int write_device_profiles(const bdaddr_t *src, const bdaddr_t *dst,
- uint8_t dst_type, const char *profiles)
-{
- char filename[PATH_MAX + 1], key[20];
-
- if (!profiles)
- return -EINVAL;
-
- create_filename(filename, PATH_MAX, src, "profiles");
-
- create_file(filename, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
-
- ba2str(dst, key);
- sprintf(&key[17], "#%hhu", dst_type);
-
- return textfile_put(filename, key, profiles);
-}
-
int delete_entry(const bdaddr_t *src, const char *storage, const bdaddr_t *dst,
uint8_t dst_type)
{