Example #1
0
File: main.c Project: intgr/bluez
static void proximity_exit(void)
{
	if (!main_opts.gatt_enabled)
		return;

	if (config)
		g_key_file_free(config);

	proximity_manager_exit();
}
Example #2
0
int proximity_manager_init(GKeyFile *config)
{
	load_config_file(config);

	if (btd_profile_register(&pxp_monitor_linkloss_profile) < 0)
		goto fail;

	if (btd_profile_register(&pxp_monitor_immediate_profile) < 0)
		goto fail;

	if (btd_profile_register(&pxp_monitor_txpower_profile) < 0)
		goto fail;

	if (btd_profile_register(&pxp_reporter_profile) < 0)
		goto fail;

	return 0;

fail:
	proximity_manager_exit();

	return -1;
}