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

Commit 8e3dbd16 authored by Chris Manton's avatar Chris Manton
Browse files

legacy: Const-ify bta_dm_pin_cback

Bug: 187830698
Tag: #refactor
Test: gd/cert/run

Change-Id: I465878750fac5f03d9b3c9fdd877ebadcba71c5d
parent 543c02a5
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -78,7 +78,7 @@ static void bta_dm_find_services(const RawAddress& bd_addr);
static void bta_dm_discover_next_device(void);
static void bta_dm_discover_next_device(void);
static void bta_dm_sdp_callback(tSDP_STATUS sdp_status);
static void bta_dm_sdp_callback(tSDP_STATUS sdp_status);
static uint8_t bta_dm_pin_cback(const RawAddress& bd_addr, DEV_CLASS dev_class,
static uint8_t bta_dm_pin_cback(const RawAddress& bd_addr, DEV_CLASS dev_class,
                                BD_NAME bd_name, bool min_16_digit);
                                const BD_NAME bd_name, bool min_16_digit);
static uint8_t bta_dm_new_link_key_cback(const RawAddress& bd_addr,
static uint8_t bta_dm_new_link_key_cback(const RawAddress& bd_addr,
                                         DEV_CLASS dev_class, BD_NAME bd_name,
                                         DEV_CLASS dev_class, BD_NAME bd_name,
                                         const LinkKey& key, uint8_t key_type);
                                         const LinkKey& key, uint8_t key_type);
@@ -2028,7 +2028,7 @@ static void bta_dm_pinname_cback(void* p_data) {
 *
 *
 ******************************************************************************/
 ******************************************************************************/
static uint8_t bta_dm_pin_cback(const RawAddress& bd_addr, DEV_CLASS dev_class,
static uint8_t bta_dm_pin_cback(const RawAddress& bd_addr, DEV_CLASS dev_class,
                                BD_NAME bd_name, bool min_16_digit) {
                                const BD_NAME bd_name, bool min_16_digit) {
  if (!bta_dm_cb.p_sec_cback) return BTM_NOT_AUTHORIZED;
  if (!bta_dm_cb.p_sec_cback) return BTM_NOT_AUTHORIZED;


  /* If the device name is not known, save bdaddr and devclass and initiate a
  /* If the device name is not known, save bdaddr and devclass and initiate a
+2 −1
Original line number Original line Diff line number Diff line
@@ -40,7 +40,8 @@ typedef uint8_t(tBTM_AUTHORIZE_CALLBACK)(uint8_t service_id);
 *              Flag indicating the minimum pin code length to be 16 digits
 *              Flag indicating the minimum pin code length to be 16 digits
 */
 */
typedef uint8_t(tBTM_PIN_CALLBACK)(const RawAddress& bd_addr,
typedef uint8_t(tBTM_PIN_CALLBACK)(const RawAddress& bd_addr,
                                   DEV_CLASS dev_class, tBTM_BD_NAME bd_name,
                                   DEV_CLASS dev_class,
                                   const tBTM_BD_NAME bd_name,
                                   bool min_16_digit);
                                   bool min_16_digit);


/* New Link Key for the connection.  Parameters are
/* New Link Key for the connection.  Parameters are