summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrédéric Danis <frederic.danis@linux.intel.com>2012-12-13 21:39:18 +0100
committerJohan Hedberg <johan.hedberg@intel.com>2012-12-13 22:54:42 +0200
commit2ff7ead49fae4ce2db0a5782bf8d0fad69ad4204 (patch)
tree3b38f32028886d018c90b0bba06598e873dbcad8 /src
parentf4a14847dd0319166ac15162716fd7c224a6c848 (diff)
downloadbluez-2ff7ead49fae4ce2db0a5782bf8d0fad69ad4204.tar.gz
adapter: Convert device profiles list
Diffstat (limited to 'src')
-rw-r--r--src/adapter.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/adapter.c b/src/adapter.c
index ef596f4f4..ce414b3f5 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -2419,6 +2419,12 @@ static void convert_ltk_entry(GKeyFile *key_file, void *value)
g_free(str);
}
+static void convert_profiles_entry(GKeyFile *key_file, void *value)
+{
+ g_strdelimit(value, " ", ';');
+ g_key_file_set_string(key_file, "General", "Profiles", value);
+}
+
static void convert_entry(char *key, char *value, void *user_data)
{
struct device_converter *converter = user_data;
@@ -2526,6 +2532,9 @@ static void convert_device_storage(struct btd_adapter *adapter)
/* Convert blocked */
convert_file("blocked", address, convert_blocked_entry, TRUE);
+ /* Convert profiles */
+ convert_file("profiles", address, convert_profiles_entry, TRUE);
+
/* Convert linkkeys */
convert_file("linkkeys", address, convert_linkkey_entry, TRUE);