* Function bta_gatts_find_app_rcb_idx_by_app_if * Description find the index of the application control block by app ID. * Returns index of the control block, or BTA_GATTS_INVALID_APP if failed.
* Function bta_gatts_alloc_srvc_cb * Description allocate a service control block. * Returns pointer to the control block, or otherwise NULL when failed.