summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@indt.org.br>2008-08-29 18:14:39 -0300
committerLuiz Augusto von Dentz <luiz.dentz@indt.org.br>2008-08-29 18:14:39 -0300
commit75c562d773e5fe37f4257631318d7f918edc5b53 (patch)
tree1c66fc1385b06866294ca846515a5b591bc35fb8 /src/main.c
parent92dcfff75cea59c9e4c65ab2b1d45730a9076a6a (diff)
Make DiscoverDevices to create discover sessions.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 64f91870..cf8f0e4a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -169,6 +169,18 @@ static void parse_config(GKeyFile *config)
g_free(str);
}
+ val = g_key_file_get_integer(config, "General",
+ "DiscoverSchedulerInterval",
+ &err);
+ if (err) {
+ debug("%s", err->message);
+ g_error_free(err);
+ err = NULL;
+ } else {
+ debug("inqmode=%d", val);
+ default_device.inqmode = val;
+ }
+
default_device.link_mode = HCI_LM_ACCEPT;
default_device.flags |= (1 << HCID_SET_LM);