From 3ee81cab2ed66b7f3d4fbd6ba6676d5d9448d6dc Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 27 Nov 2008 16:46:45 -0300 Subject: Introduce PairableTimeout Property and fix use of g_timeout_add. PairableTimeout work similarly to DiscoverableTimeout where the user application can set the amount of time to stay in Pairable. It also fixes the use of g_timeout_add to g_timeout_add_seconds for both PairableTimeout and DiscoverableTimeout. --- src/main.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 407a1122..2b41e6b9 100644 --- a/src/main.c +++ b/src/main.c @@ -126,6 +126,17 @@ static void parse_config(GKeyFile *config) main_opts.flags |= 1 << HCID_SET_DISCOVTO; } + val = g_key_file_get_integer(config, "General", + "PairableTimeout", + &err); + if (err) { + debug("%s", err->message); + g_clear_error(&err); + } else { + debug("pairto=%d", val); + main_opts.pairto = val; + } + val = g_key_file_get_integer(config, "General", "PageTimeout", &err); -- cgit