Lines Matching defs:gatt_if
42 static void bta_gatts_conn_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id, BOOLEAN connected, tGATT_DISCONN_REASON reason);
157 GATT_Deregister(p_cb->rcb[i].gatt_if);
225 p_cb->rcb[first_unuse].gatt_if = GATT_Register(&p_msg->api_reg.app_uuid, &bta_gatts_cback);
226 if ( !p_cb->rcb[first_unuse].gatt_if)
235 p_buf->server_if = p_cb->rcb[first_unuse].gatt_if;
299 if (p_cb->rcb[i].in_use && p_cb->rcb[i].gatt_if == p_msg->api_dereg.server_if)
305 GATT_Deregister(p_cb->rcb[i].gatt_if);
350 service_id = GATTS_CreateService (p_cb->rcb[rcb_idx].gatt_if,
368 cb_data.create.server_if = p_cb->rcb[rcb_idx].gatt_if;
407 cb_data.add_result.server_if = p_rcb->gatt_if;
442 cb_data.add_result.server_if = p_rcb->gatt_if;
480 cb_data.add_result.server_if = p_rcb->gatt_if;
514 cb_data.srvc_oper.server_if = p_rcb->gatt_if;
517 if (GATTS_DeleteService(p_rcb->gatt_if,
547 cb_data.srvc_oper.server_if = p_rcb->gatt_if;
550 if (GATTS_StartService(p_rcb->gatt_if,
581 cb_data.srvc_oper.server_if = p_rcb->gatt_if;
628 tGATT_IF gatt_if;
636 if (GATT_GetConnectionInfor(p_msg->api_indicate.hdr.layer_specific, &gatt_if, remote_bda))
694 if (GATT_Connect(p_rcb->gatt_if, p_msg->api_open.remote_bda, p_msg->api_open.is_direct))
724 if (!GATT_CancelConnect(p_rcb->gatt_if, p_msg->api_cancel_open.remote_bda, p_msg->api_cancel_open.is_direct))
754 tGATT_IF gatt_if;
757 if (GATT_GetConnectionInfor(p_msg->hdr.layer_specific, &gatt_if, remote_bda))
768 p_rcb = bta_gatts_find_app_rcb_by_app_if(gatt_if);
833 tGATT_IF gatt_if;
837 if (GATT_GetConnectionInfor(conn_id, &gatt_if, cb_data.req_data.remote_bda))
839 p_rcb = bta_gatts_find_app_rcb_by_app_if(gatt_if);
860 APPL_TRACE_ERROR1("connection request on gatt_if[%d] is not interested", gatt_if);
878 static void bta_gatts_conn_cback (tGATT_IF gatt_if, BD_ADDR bda, UINT16 conn_id,
885 APPL_TRACE_DEBUG4 ("bta_gatts_conn_cback gatt_if=%d conn_id=%d connected=%d reason = 0x%04d",
886 gatt_if, conn_id, connected, reason);
890 p_reg = bta_gatts_find_app_rcb_by_app_if(gatt_if);
904 cb_data.conn.server_if = gatt_if;
911 APPL_TRACE_ERROR1("bta_gatts_conn_cback server_if=%d not found",gatt_if);