diff options
author | Frédéric Danis <frederic.danis@linux.intel.com> | 2012-12-13 21:39:30 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-12-13 23:00:32 +0200 |
commit | c5bd27258c175dc80ef842f71ef222a876ff646f (patch) | |
tree | 5817015222985efd1cfb52f39a270cc3549387c9 /src/storage.c | |
parent | b99ee4ad4bfa2f53edf7f1326476251f14c8bbad (diff) | |
download | bluez-c5bd27258c175dc80ef842f71ef222a876ff646f.tar.gz |
input: Use new storage architecture
Retrieve HID record from device file located in cache directory.
Remove no more used fetch_record().
Diffstat (limited to 'src/storage.c')
-rw-r--r-- | src/storage.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/storage.c b/src/storage.c index d3cbc8f36..33da2cba4 100644 --- a/src/storage.c +++ b/src/storage.c @@ -268,33 +268,6 @@ sdp_record_t *record_from_string(const gchar *str) } -sdp_record_t *fetch_record(const gchar *src, const gchar *dst, - uint8_t dst_type, const uint32_t handle) -{ - char filename[PATH_MAX + 1], old_key[28], key[30], *str; - sdp_record_t *rec; - - create_name(filename, PATH_MAX, STORAGEDIR, src, "sdp"); - - snprintf(key, sizeof(key), "%17s#%hhu#%08X", dst, dst_type, handle); - snprintf(old_key, sizeof(old_key), "%17s#%08X", dst, handle); - - str = textfile_get(filename, key); - if (str != NULL) - goto done; - - /* Try old format (address#handle) */ - str = textfile_get(filename, old_key); - if (str == NULL) - return NULL; - -done: - rec = record_from_string(str); - free(str); - - return rec; -} - int delete_record(const gchar *src, const gchar *dst, uint8_t dst_type, const uint32_t handle) { |