Lines Matching refs:clcb
103 void clcb_dealloc(tGAP_CLCB& clcb) { in clcb_dealloc() argument
107 if (it->conn_id == clcb.conn_id) { in clcb_dealloc()
237 bool send_cl_read_request(tGAP_CLCB& clcb) { in send_cl_read_request() argument
238 if (!clcb.requests.size()) { in send_cl_read_request()
242 tGAP_REQUEST& req = clcb.requests.front(); in send_cl_read_request()
243 clcb.p_cback = req.p_cback; in send_cl_read_request()
245 clcb.requests.pop(); in send_cl_read_request()
255 if (GATTC_Read(clcb.conn_id, GATT_READ_BY_TYPE, ¶m) == GATT_SUCCESS) { in send_cl_read_request()
256 clcb.cl_op_uuid = uuid; in send_cl_read_request()
263 void cl_op_cmpl(tGAP_CLCB& clcb, bool status, uint16_t len, uint8_t* p_name) { in cl_op_cmpl() argument
264 tGAP_BLE_CMPL_CBACK* p_cback = clcb.p_cback; in cl_op_cmpl()
265 uint16_t op = clcb.cl_op_uuid; in cl_op_cmpl()
269 clcb.cl_op_uuid = 0; in cl_op_cmpl()
270 clcb.p_cback = NULL; in cl_op_cmpl()
274 (*p_cback)(status, clcb.bda, len, (char*)p_name); in cl_op_cmpl()
278 if (clcb.connected) { in cl_op_cmpl()
279 if (!send_cl_read_request(clcb)) { in cl_op_cmpl()
280 GATT_Disconnect(clcb.conn_id); in cl_op_cmpl()
281 clcb_dealloc(clcb); in cl_op_cmpl()