diff options
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"); | 
