Lines Matching refs:p_rec
93 static void bta_create_mns_sdp_record(bluetooth_sdp_record *record, tSDP_DISC_REC *p_rec) in bta_create_mns_sdp_record() argument
106 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_MAP_SUPPORTED_FEATURES)) != NULL) in bta_create_mns_sdp_record()
111 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_NAME)) != NULL) in bta_create_mns_sdp_record()
117 if (SDP_FindProfileVersionInRec(p_rec, UUID_SERVCLASS_MAP_PROFILE, &pversion)) in bta_create_mns_sdp_record()
122 if (SDP_FindProtocolListElemInRec(p_rec, UUID_PROTOCOL_RFCOMM, &pe)) in bta_create_mns_sdp_record()
127 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_GOEP_L2CAP_PSM)) != NULL) in bta_create_mns_sdp_record()
133 static void bta_create_mas_sdp_record(bluetooth_sdp_record *record, tSDP_DISC_REC *p_rec) in bta_create_mas_sdp_record() argument
149 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_MAS_INSTANCE_ID)) != NULL) in bta_create_mas_sdp_record()
154 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SUPPORTED_MSG_TYPE)) != NULL) in bta_create_mas_sdp_record()
159 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_MAP_SUPPORTED_FEATURES)) != NULL) in bta_create_mas_sdp_record()
164 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_NAME)) != NULL) in bta_create_mas_sdp_record()
170 if (SDP_FindProfileVersionInRec(p_rec, UUID_SERVCLASS_MAP_PROFILE, &pversion)) in bta_create_mas_sdp_record()
175 if (SDP_FindProtocolListElemInRec(p_rec, UUID_PROTOCOL_RFCOMM, &pe)) in bta_create_mas_sdp_record()
180 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_GOEP_L2CAP_PSM)) != NULL) in bta_create_mas_sdp_record()
186 static void bta_create_pse_sdp_record(bluetooth_sdp_record *record, tSDP_DISC_REC *p_rec) in bta_create_pse_sdp_record() argument
201 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SUPPORTED_REPOSITORIES)) != NULL) in bta_create_pse_sdp_record()
205 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_PBAP_SUPPORTED_FEATURES)) != NULL) in bta_create_pse_sdp_record()
210 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_NAME)) != NULL) in bta_create_pse_sdp_record()
216 if (SDP_FindProfileVersionInRec(p_rec, UUID_SERVCLASS_PHONE_ACCESS, &pversion)) in bta_create_pse_sdp_record()
221 if (SDP_FindProtocolListElemInRec(p_rec, UUID_PROTOCOL_RFCOMM, &pe)) in bta_create_pse_sdp_record()
226 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_GOEP_L2CAP_PSM)) != NULL) in bta_create_pse_sdp_record()
232 static void bta_create_ops_sdp_record(bluetooth_sdp_record *record, tSDP_DISC_REC *p_rec) in bta_create_ops_sdp_record() argument
246 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_NAME)) != NULL) in bta_create_ops_sdp_record()
252 if (SDP_FindProfileVersionInRec(p_rec, UUID_SERVCLASS_OBEX_OBJECT_PUSH, &pversion)) in bta_create_ops_sdp_record()
257 if (SDP_FindProtocolListElemInRec(p_rec, UUID_PROTOCOL_RFCOMM, &pe)) in bta_create_ops_sdp_record()
262 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_GOEP_L2CAP_PSM)) != NULL) in bta_create_ops_sdp_record()
266 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SUPPORTED_FORMATS_LIST)) != NULL) in bta_create_ops_sdp_record()
313 static void bta_create_sap_sdp_record(bluetooth_sdp_record *record, tSDP_DISC_REC *p_rec) in bta_create_sap_sdp_record() argument
326 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_NAME)) != NULL) in bta_create_sap_sdp_record()
332 if (SDP_FindProfileVersionInRec(p_rec, UUID_SERVCLASS_SAP, &pversion)) in bta_create_sap_sdp_record()
337 if (SDP_FindProtocolListElemInRec(p_rec, UUID_PROTOCOL_RFCOMM, &pe)) in bta_create_sap_sdp_record()
343 static void bta_create_raw_sdp_record(bluetooth_sdp_record *record, tSDP_DISC_REC *p_rec) in bta_create_raw_sdp_record() argument
356 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_NAME)) != NULL) in bta_create_raw_sdp_record()
363 if (SDP_FindProtocolListElemInRec(p_rec, UUID_PROTOCOL_RFCOMM, &pe)) in bta_create_raw_sdp_record()
383 tSDP_DISC_REC *p_rec = NULL; in bta_sdp_search_cback() local
403 p_rec = SDP_FindServiceUUIDInDb(p_bta_sdp_cfg->p_sdp_db, &su, p_rec); in bta_sdp_search_cback()
405 if(p_rec != NULL){ in bta_sdp_search_cback()
409 bta_create_mas_sdp_record(&evt_data.records[count], p_rec); in bta_sdp_search_cback()
412 bta_create_mns_sdp_record(&evt_data.records[count], p_rec); in bta_sdp_search_cback()
415 bta_create_pse_sdp_record(&evt_data.records[count], p_rec); in bta_sdp_search_cback()
418 bta_create_ops_sdp_record(&evt_data.records[count], p_rec); in bta_sdp_search_cback()
421 bta_create_sap_sdp_record(&evt_data.records[count], p_rec); in bta_sdp_search_cback()
426 bta_create_raw_sdp_record(&evt_data.records[count], p_rec); in bta_sdp_search_cback()
427 p_rec = NULL; // Terminate loop in bta_sdp_search_cback()
438 } while (p_rec != NULL && count < BTA_SDP_MAX_RECORDS); in bta_sdp_search_cback()