diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2009-01-13 18:23:07 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-01-13 18:23:07 +0200 |
commit | bdf140bd02cee6c39ebb8c6d71ac1d4f6f7eaa07 (patch) | |
tree | a73ed295c4848a2793e950347f70242cbab57b15 /src/main.c | |
parent | 8f159d4498f549b0f9ecad9ef4147847f0583ebb (diff) |
Add ReverseServiceDiscovery config option
This option is solely for qualification since the BITE tester in its
grand braindeadness doesn't like use doing reverse SDP.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -193,6 +193,14 @@ static void parse_config(GKeyFile *config) g_free(str); } + boolean = g_key_file_get_boolean(config, "General", + "ReverseServiceDiscovery", &err); + if (err) { + g_clear_error(&err); + } else + main_opts.reverse_sdp = boolean; + + main_opts.link_mode = HCI_LM_ACCEPT; main_opts.link_policy = HCI_LP_RSWITCH | HCI_LP_SNIFF | @@ -545,6 +553,7 @@ static void init_defaults(void) main_opts.name = g_strdup("BlueZ"); main_opts.discovto = HCID_DEFAULT_DISCOVERABLE_TIMEOUT; main_opts.remember_powered = TRUE; + main_opts.reverse_sdp = TRUE; if (gethostname(main_opts.host_name, sizeof(main_opts.host_name) - 1) < 0) strcpy(main_opts.host_name, "noname"); |