Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f75e1fe4 authored by Chris Manton's avatar Chris Manton
Browse files

Const-ify bta event handler data

Bug: 284462835
Test: mma -j98 .
Change-Id: I75e6b6596a295ac7413a1bf93a346637559a165f
parent 1f95095d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -318,7 +318,7 @@ extern const tBTA_AG_HF_IND bta_ag_local_hf_ind_cfg[];
/*****************************************************************************
 *  Function prototypes
 ****************************************************************************/
bool bta_ag_hdl_event(BT_HDR_RIGID* p_msg);
bool bta_ag_hdl_event(const BT_HDR_RIGID* p_msg);

/* API functions */
void bta_ag_api_enable(tBTA_AG_CBACK* p_cback);
+1 −1
Original line number Diff line number Diff line
@@ -771,7 +771,7 @@ void bta_ag_sm_execute_by_handle(uint16_t handle, uint16_t event,
 * @param p_msg event message
 * @return True to free p_msg, or False if p_msg is freed within this function
 */
bool bta_ag_hdl_event(BT_HDR_RIGID* p_msg) {
bool bta_ag_hdl_event(const BT_HDR_RIGID* p_msg) {
  switch (p_msg->event) {
    case BTA_AG_RING_TIMEOUT_EVT:
    case BTA_AG_SVC_TIMEOUT_EVT:
+1 −1
Original line number Diff line number Diff line
@@ -730,7 +730,7 @@ void bta_av_dup_audio_buf(tBTA_AV_SCB* p_scb, BT_HDR* p_buf);
void bta_av_sm_execute(tBTA_AV_CB* p_cb, uint16_t event, tBTA_AV_DATA* p_data);
void bta_av_ssm_execute(tBTA_AV_SCB* p_scb, uint16_t event,
                        tBTA_AV_DATA* p_data);
bool bta_av_hdl_event(BT_HDR_RIGID* p_msg);
bool bta_av_hdl_event(const BT_HDR_RIGID* p_msg);
const char* bta_av_evt_code(uint16_t evt_code);
bool bta_av_switch_if_needed(tBTA_AV_SCB* p_scb);
bool bta_av_link_role_ok(tBTA_AV_SCB* p_scb, uint8_t bits);
+1 −1
Original line number Diff line number Diff line
@@ -1227,7 +1227,7 @@ void bta_av_sm_execute(tBTA_AV_CB* p_cb, uint16_t event, tBTA_AV_DATA* p_data) {
 * Returns          bool
 *
 ******************************************************************************/
bool bta_av_hdl_event(BT_HDR_RIGID* p_msg) {
bool bta_av_hdl_event(const BT_HDR_RIGID* p_msg) {
  if (p_msg->event > BTA_AV_LAST_EVT) {
    return true; /* to free p_msg */
  }
+1 −1
Original line number Diff line number Diff line
@@ -506,7 +506,7 @@ extern tBTA_DM_SEARCH_CB bta_dm_search_cb;
/* DI control block */
extern tBTA_DM_DI_CB bta_dm_di_cb;

bool bta_dm_search_sm_execute(BT_HDR_RIGID* p_msg);
bool bta_dm_search_sm_execute(const BT_HDR_RIGID* p_msg);
void bta_dm_search_sm_disable(void);

void bta_dm_enable(tBTA_DM_SEC_CBACK*);
Loading