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

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

Canonicalize stack/hid/hidh_conn.cc

Bug: 163134718
Test: cert
Tag: #refactor

Change-Id: I9e233853056f4694d484212c9252fb3e0e9ab41b
parent f576a375
Loading
Loading
Loading
Loading
+12 −6
Original line number Diff line number Diff line
@@ -61,12 +61,18 @@ static void hidh_l2cif_cong_ind(uint16_t l2cap_cid, bool congested);
static void hidh_on_l2cap_error(uint16_t l2cap_cid, uint16_t result);

static const tL2CAP_APPL_INFO hst_reg_info = {
    hidh_l2cif_connect_ind,    hidh_l2cif_connect_cfm,
    hidh_l2cif_config_ind,     hidh_l2cif_config_cfm,
    hidh_l2cif_disconnect_ind, hidh_l2cif_data_ind,
    hidh_l2cif_cong_ind,       NULL,
    hidh_on_l2cap_error,       NULL,
    NULL,                      NULL
    .pL2CA_ConnectInd_Cb = hidh_l2cif_connect_ind,
    .pL2CA_ConnectCfm_Cb = hidh_l2cif_connect_cfm,
    .pL2CA_ConfigInd_Cb = hidh_l2cif_config_ind,
    .pL2CA_ConfigCfm_Cb = hidh_l2cif_config_cfm,
    .pL2CA_DisconnectInd_Cb = hidh_l2cif_disconnect_ind,
    .pL2CA_DataInd_Cb = hidh_l2cif_data_ind,
    .pL2CA_CongestionStatus_Cb = hidh_l2cif_cong_ind,
    .pL2CA_TxComplete_Cb = nullptr,
    .pL2CA_Error_Cb = hidh_on_l2cap_error,
    .pL2CA_CreditBasedConnectInd_Cb = nullptr,
    .pL2CA_CreditBasedConnectCfm_Cb = nullptr,
    .pL2CA_CreditBasedReconfigCompleted_Cb = nullptr,
};
static void hidh_try_repage(uint8_t dhandle);