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

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

Internally link stack/hid/hidh_conn::

hidh_try_repage
hidh_process_repage_timer_timeout

Towards readable code

Bug: 163134718
Tag: #refactor
Test: act.py -tc BleCocTest
Test: ble paired 2 phones
Test: classic paired Bose SoundLink

Change-Id: Ia6e0e29fc7a466d5441b991ce38211f5378dfcb9
parent 8723d3dc
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -68,6 +68,7 @@ static const tL2CAP_APPL_INFO hst_reg_info = {
    hidh_on_l2cap_error,       NULL,
    NULL,                      NULL
};
static void hidh_try_repage(uint8_t dhandle);

/*******************************************************************************
 *
@@ -224,7 +225,7 @@ static void hidh_l2cif_connect_ind(const RawAddress& bd_addr,
      psm, l2cap_cid);
}

void hidh_process_repage_timer_timeout(void* data) {
static void hidh_process_repage_timer_timeout(void* data) {
  uint8_t dhandle = PTR_TO_UINT(data);
  hidh_try_repage(dhandle);
}
@@ -238,7 +239,7 @@ void hidh_process_repage_timer_timeout(void* data) {
 * Returns          void
 *
 ******************************************************************************/
void hidh_try_repage(uint8_t dhandle) {
static void hidh_try_repage(uint8_t dhandle) {
  tHID_HOST_DEV_CTB* device;

  hidh_conn_initiate(dhandle);
+0 −2
Original line number Diff line number Diff line
@@ -67,8 +67,6 @@ extern tHID_STATUS hidh_conn_reg(void);
extern void hidh_conn_dereg(void);
extern tHID_STATUS hidh_conn_disconnect(uint8_t dhandle);
extern tHID_STATUS hidh_conn_initiate(uint8_t dhandle);
extern void hidh_process_repage_timer_timeout(void* data);
extern void hidh_try_repage(uint8_t dhandle);

/******************************************************************************
 * Main Control Block