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

Commit 51439922 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add const in key missing related callback" into main

parents b230de15 90a235e5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -753,7 +753,7 @@ static void le_rand_callback(uint64_t /* random */) {
  // Android doesn't support the LeRand API.
}

static void key_missing_callback(RawAddress bd_addr) {
static void key_missing_callback(const RawAddress bd_addr) {
  std::shared_lock<std::shared_timed_mutex> lock(jniObjMutex);
  if (!sJniCallbacksObj) {
    ALOGE("%s, JNI obj is null. Failed to call JNI callback", __func__);
+1 −1
Original line number Diff line number Diff line
@@ -117,7 +117,7 @@ void bta_dm_sec_enable(tBTA_DM_SEC_CBACK* p_sec_cback) {
  btm_local_io_caps = btif_storage_get_local_io_caps();
}

void bta_dm_remote_key_missing(RawAddress bd_addr) {
void bta_dm_remote_key_missing(const RawAddress bd_addr) {
  if (bta_dm_sec_cb.p_sec_cback) {
    tBTA_DM_SEC sec_event;
    sec_event.key_missing.bd_addr = bd_addr;
+1 −1
Original line number Diff line number Diff line
@@ -595,7 +595,7 @@ typedef void (*energy_info_callback)(bt_activity_energy_info* energy_info,
typedef void (*generate_local_oob_data_callback)(tBT_TRANSPORT transport,
                                                 bt_oob_data_t oob_data);

typedef void (*key_missing_callback)(RawAddress bd_addr);
typedef void (*key_missing_callback)(const RawAddress bd_addr);

/** TODO: Add callbacks for Link Up/Down and other generic
 *  notifications/callbacks */
+1 −1
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ void btm_inq_stop_on_ssp(void);
bool btm_ble_init_pseudo_addr(tBTM_SEC_DEV_REC* p_dev_rec,
                              const RawAddress& new_pseudo_addr);
void bta_dm_remove_device(const RawAddress& bd_addr);
void bta_dm_remote_key_missing(RawAddress bd_addr);
void bta_dm_remote_key_missing(const RawAddress bd_addr);
void bta_dm_process_remove_device(const RawAddress& bd_addr);
void btm_inq_clear_ssp(void);

+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ void invoke_link_quality_report_cb(uint64_t timestamp, int report_id, int rssi,
                                   int snr, int retransmission_count,
                                   int packets_not_receive_count,
                                   int negative_acknowledgement_count) {}
void invoke_key_missing_cb(RawAddress bd_addr) {}
void invoke_key_missing_cb(const RawAddress bd_addr) {}

static void init_stack(bluetooth::core::CoreInterface* interface) {}

Loading