Esempio n. 1
0
/*******************************************************************************
**
** Function         btif_gatt_cleanup
**
** Description      Closes the GATT interface
**
** Returns          void
**
*******************************************************************************/
static void  btif_gatt_cleanup( void )
{
    GATT_IF_API();
    if (bt_gatt_callbacks)
        bt_gatt_callbacks = NULL;

    btif_disable_service(BTMTK_BLE_SERVICE_ID);
}
Esempio n. 2
0
/*******************************************************************************
**
** Function         cleanup
**
** Description      Closes the HF interface
**
** Returns          bt_status_t
**
*******************************************************************************/
static void  cleanup( void )
{
    BTIF_TRACE_EVENT("%s", __FUNCTION__);

    if (bt_hf_client_callbacks)
    {
        btif_disable_service(BTA_HFP_HS_SERVICE_ID);
        bt_hf_client_callbacks = NULL;
    }
}
Esempio n. 3
0
/*******************************************************************************
**
** Function         cleanup
**
** Description      Shuts down the AV interface and does the cleanup
**
** Returns          None
**
*******************************************************************************/
static void cleanup(void)
{
    bt_ext_log("%s", __FUNCTION__);

    if (bt_av_callbacks)
    {
	    btif_disable_service(BTMTK_AVRCP_SERVICE_ID);

	    btmtk_profile_unregister(PROFILE_AVRCP);

	    btif_disable_service(BTMTK_A2DP_SERVICE_ID);

	    btmtk_profile_unregister(PROFILE_A2DP);
	
        bt_av_callbacks = NULL;
    }
		
    return;
}
/*******************************************************************************
**
** Function         cleanup
**
** Description      Cleans up BT-HD interface
**
** Returns          none
**
*******************************************************************************/
static void  cleanup(void)
{
    BTIF_TRACE_API("%s", __FUNCTION__);

    if (bt_hd_callbacks)
    {
        btif_disable_service(BTA_HIDD_SERVICE_ID);
        bt_hd_callbacks = NULL;
    }
}