Lines Matching refs:cb_data
185 tBTA_GATTS cb_data;
218 cb_data.reg_oper.server_if = BTA_GATTS_INVALID_IF;
219 memcpy(&cb_data.reg_oper.uuid, &p_msg->api_reg.app_uuid, sizeof(tBT_UUID));
227 cb_data.reg_oper.server_if =
245 cb_data.reg_oper.status = status;
247 (*p_msg->api_reg.p_cback)(BTA_GATTS_REG_EVT, &cb_data);
288 tBTA_GATTS cb_data;
290 cb_data.reg_oper.server_if = p_msg->api_dereg.server_if;
291 cb_data.reg_oper.status = status;
305 cb_data.reg_oper.status = status;
312 (*p_cback)(BTA_GATTS_DEREG_EVT, &cb_data);
331 tBTA_GATTS cb_data;
335 cb_data.create.status = BTA_GATT_ERROR;
360 cb_data.create.status = BTA_GATT_OK;
361 cb_data.create.service_id = service_id;
362 cb_data.create.is_primary = p_msg->api_create_svc.is_pri;
363 cb_data.create.server_if = p_cb->rcb[rcb_idx].gatt_if;
367 cb_data.status = BTA_GATT_ERROR;
371 memcpy(&cb_data.create.uuid, &p_msg->api_create_svc.service_uuid, sizeof(tBT_UUID));
372 cb_data.create.svc_instance= p_msg->api_create_svc.inst;
375 (* p_cb->rcb[rcb_idx].p_cback)(BTA_GATTS_CREATE_EVT, &cb_data);
395 tBTA_GATTS cb_data;
400 cb_data.add_result.server_if = p_rcb->gatt_if;
401 cb_data.add_result.service_id = p_msg->api_add_incl_srvc.hdr.layer_specific;
402 cb_data.add_result.attr_id = attr_id;
406 cb_data.add_result.status = BTA_GATT_OK;
410 cb_data.add_result.status = BTA_GATT_ERROR;
414 (*p_rcb->p_cback)(BTA_GATTS_ADD_INCL_SRVC_EVT, &cb_data);
429 tBTA_GATTS cb_data;
435 cb_data.add_result.server_if = p_rcb->gatt_if;
436 cb_data.add_result.service_id = p_msg->api_add_incl_srvc.hdr.layer_specific;
437 cb_data.add_result.attr_id = attr_id;
438 memcpy(&cb_data.add_result.char_uuid, &p_msg->api_add_char.char_uuid, sizeof(tBT_UUID));
442 cb_data.add_result.status = BTA_GATT_OK;
446 cb_data.add_result.status = BTA_GATT_ERROR;
450 (*p_rcb->p_cback)(BTA_GATTS_ADD_CHAR_EVT, &cb_data);
465 tBTA_GATTS cb_data;
471 cb_data.add_result.server_if = p_rcb->gatt_if;
472 cb_data.add_result.service_id = p_msg->api_add_incl_srvc.hdr.layer_specific;
473 cb_data.add_result.attr_id = attr_id;
474 memcpy(&cb_data.add_result.char_uuid, &p_msg->api_add_char_descr.descr_uuid, sizeof(tBT_UUID));
478 cb_data.add_result.status = BTA_GATT_OK;
482 cb_data.add_result.status = BTA_GATT_ERROR;
486 (*p_rcb->p_cback)(BTA_GATTS_ADD_CHAR_DESCR_EVT, &cb_data);
501 tBTA_GATTS cb_data;
503 cb_data.srvc_oper.server_if = p_rcb->gatt_if;
504 cb_data.srvc_oper.service_id = p_msg->api_add_incl_srvc.hdr.layer_specific;
510 cb_data.srvc_oper.status = BTA_GATT_OK;
515 cb_data.srvc_oper.status = BTA_GATT_ERROR;
519 (*p_rcb->p_cback)(BTA_GATTS_DELELTE_EVT, &cb_data);
534 tBTA_GATTS cb_data;
536 cb_data.srvc_oper.server_if = p_rcb->gatt_if;
537 cb_data.srvc_oper.service_id = p_msg->api_add_incl_srvc.hdr.layer_specific;
544 cb_data.srvc_oper.status = BTA_GATT_OK;
548 cb_data.srvc_oper.status = BTA_GATT_ERROR;
552 (*p_rcb->p_cback)(BTA_GATTS_START_EVT, &cb_data);
567 tBTA_GATTS cb_data;
571 cb_data.srvc_oper.server_if = p_rcb->gatt_if;
572 cb_data.srvc_oper.service_id = p_srvc_cb->service_id;
573 cb_data.srvc_oper.status = BTA_GATT_OK;
577 (*p_rcb->p_cback)(BTA_GATTS_STOP_EVT, &cb_data);
619 tBTA_GATTS cb_data;
658 cb_data.req_data.status = status;
659 cb_data.req_data.conn_id = p_msg->api_indicate.hdr.layer_specific;
661 (*p_rcb->p_cback)(BTA_GATTS_CONF_EVT, &cb_data);
805 tBTA_GATTS cb_data;
808 cb_data.reg_oper.status = BTA_GATT_OK;
809 cb_data.reg_oper.server_if = p_msg->api_listen.server_if;
821 cb_data.status = BTA_GATT_ERROR;
826 (*p_rcb->p_cback)(BTA_GATTS_LISTEN_EVT, &cb_data);
842 tBTA_GATTS cb_data;
847 memset(&cb_data, 0 , sizeof(tBTA_GATTS));
849 if (GATT_GetConnectionInfor(conn_id, &gatt_if, cb_data.req_data.remote_bda, &transport))
861 bta_sys_busy(BTA_ID_GATTS, BTA_ALL_APP_ID, cb_data.req_data.remote_bda);
862 bta_sys_idle(BTA_ID_GATTS, BTA_ALL_APP_ID, cb_data.req_data.remote_bda);
865 cb_data.req_data.conn_id = conn_id;
866 cb_data.req_data.trans_id = trans_id;
867 cb_data.req_data.p_data = (tBTA_GATTS_REQ_DATA *)p_data;
869 (*p_rcb->p_cback)(req_type, &cb_data);
895 tBTA_GATTS cb_data;
924 cb_data.conn.conn_id = conn_id;
925 cb_data.conn.server_if = gatt_if;
926 cb_data.conn.reason = reason;
927 cb_data.conn.transport = transport;
928 memcpy(cb_data.conn.remote_bda, bda, BD_ADDR_LEN);
929 (*p_reg->p_cback)(evt, &cb_data);
951 tBTA_GATTS cb_data;
953 if (GATT_GetConnectionInfor(conn_id, &gatt_if, cb_data.req_data.remote_bda, &transport))
959 cb_data.congest.conn_id = conn_id;
960 cb_data.congest.congested = congested;
962 (*p_rcb->p_cback)(BTA_GATTS_CONGEST_EVT, &cb_data);