connman_bool_t bg_scan;
char **pref_timeservers;
unsigned int *auto_connect;
+ unsigned int *preferred_techs;
} connman_settings = {
.bg_scan = TRUE,
.pref_timeservers = NULL,
.auto_connect = NULL,
+ .preferred_techs = NULL,
};
static GKeyFile *load_config(const char *file)
g_strfreev(str_list);
g_clear_error(&error);
+
+ str_list = g_key_file_get_string_list(config, "General",
+ "PreferredTechnologies", &len, &error);
+
+ if (error == NULL)
+ connman_settings.preferred_techs =
+ parse_service_types(str_list, len);
+
+ g_strfreev(str_list);
+
+ g_clear_error(&error);
}
static GMainLoop *main_loop = NULL;
if (g_str_equal(key, "DefaultAutoConnectTechnologies") == TRUE)
return connman_settings.auto_connect;
+ if (g_str_equal(key, "PreferredTechnologies") == TRUE)
+ return connman_settings.preferred_techs;
+
return NULL;
}
g_strfreev(connman_settings.pref_timeservers);
g_free(connman_settings.auto_connect);
+ g_free(connman_settings.preferred_techs);
g_free(option_debug);