/* config struct */
extern tBTA_MCE_CFG* p_bta_mce_cfg;
-extern bool bta_mce_sm_execute(BT_HDR* p_msg);
-
extern void bta_mce_enable(tBTA_MCE_MSG* p_data);
extern void bta_mce_get_remote_mas_instances(tBTA_MCE_MSG* p_data);
****************************************************************************/
tBTA_MCE_CB bta_mce_cb;
-
-/* state machine action enumeration list */
-#define BTA_MCE_NUM_ACTIONS (BTA_MCE_MAX_INT_EVT & 0x00ff)
-
-/* type for action functions */
-typedef void (*tBTA_MCE_ACTION)(tBTA_MCE_MSG* p_data);
-
-/* action function list */
-const tBTA_MCE_ACTION bta_mce_action[] = {
- bta_mce_enable, /* BTA_MCE_API_ENABLE_EVT */
- bta_mce_get_remote_mas_instances, /* BTA_MCE_API_GET_REMOTE_MAS_INSTANCES_EVT
- */
-};
-
-/*******************************************************************************
- *
- * Function bta_mce_sm_execute
- *
- * Description State machine event handling function for MCE
- *
- *
- * Returns void
- *
- ******************************************************************************/
-bool bta_mce_sm_execute(BT_HDR* p_msg) {
- if (p_msg == NULL) return false;
-
- bool ret = false;
- uint16_t action = (p_msg->event & 0x00ff);
-
- /* execute action functions */
- if (action < BTA_MCE_NUM_ACTIONS) {
- (*bta_mce_action[action])((tBTA_MCE_MSG*)p_msg);
- ret = true;
- }
-
- return (ret);
-}