diff --git a/src/btd.h b/src/btd.h
index a3247e4..6af54a9 100644
--- a/src/btd.h
+++ b/src/btd.h
gboolean debug_keys;
gboolean fast_conn;
gboolean refresh_discovery;
+ gboolean experimental;
uint16_t did_source;
uint16_t did_vendor;
diff --git a/src/main.c b/src/main.c
index 94141b1..37ed456 100644
--- a/src/main.c
+++ b/src/main.c
else
btd_opts.refresh_discovery = boolean;
+ boolean = g_key_file_get_boolean(config, "General",
+ "Experimental", &err);
+ if (err)
+ g_clear_error(&err);
+ else
+ btd_opts.experimental = boolean;
+
str = g_key_file_get_string(config, "GATT", "Cache", &err);
if (err) {
DBG("%s", err->message);
btd_opts.name_resolv = TRUE;
btd_opts.debug_keys = FALSE;
btd_opts.refresh_discovery = TRUE;
+ btd_opts.experimental = false;
btd_opts.defaults.num_entries = 0;
btd_opts.defaults.br.page_scan_type = 0xFFFF;
static gboolean option_compat = FALSE;
static gboolean option_detach = TRUE;
static gboolean option_version = FALSE;
-static gboolean option_experimental = FALSE;
static void free_options(void)
{
"Specify an explicit path to the config file", "FILE"},
{ "compat", 'C', 0, G_OPTION_ARG_NONE, &option_compat,
"Provide deprecated command line interfaces" },
- { "experimental", 'E', 0, G_OPTION_ARG_NONE, &option_experimental,
+ { "experimental", 'E', 0, G_OPTION_ARG_NONE, &btd_opts.experimental,
"Enable experimental interfaces" },
{ "nodetach", 'n', G_OPTION_FLAG_REVERSE,
G_OPTION_ARG_NONE, &option_detach,
exit(1);
}
- if (option_experimental)
+ if (btd_opts.experimental)
gdbus_flags = G_DBUS_FLAG_ENABLE_EXPERIMENTAL;
g_dbus_set_flags(gdbus_flags);
diff --git a/src/main.conf b/src/main.conf
index f47cab4..bf8a860 100644
--- a/src/main.conf
+++ b/src/main.conf
# profile is connected. Defaults to true.
#RefreshDiscovery = true
+# Enables experimental features and interfaces.
+# Defaults to false.
+#Experimental = false
+
[BR]
# The following values are used to load default adapter parameters for BR/EDR.
# BlueZ loads the values into the kernel before the adapter is powered if the