コード例 #1
0
static void cleanup( void )
{
    /* sanity check */
    if (interface_ready() == FALSE)
        return;

    btif_shutdown_bluetooth();

    /* hal callbacks reset upon shutdown complete callback */

    return;
}
コード例 #2
0
void btif_disable_bluetooth_evt(void)
{
	ilm_struct ilm;
	int result;
	
	ALOGI("+++[btif_disable_bluetooth_evt]+++!\n");
	/* update local state */
    btif_core_state = BTIF_CORE_STATE_DISABLED;

    /* callback to HAL */
    HAL_CBACK(bt_hal_cbacks, adapter_state_changed_cb, BT_STATE_OFF);
	
	if (btif_shutdown_pending)
	{
		ALOGI("[btif_disable_bluetooth_evt]:btif_shutdown_bluetooth!\n");
		btif_shutdown_bluetooth();
	}
	ALOGI("---[btif_disable_bluetooth_evt]---!\n");
}