Lines Matching full:record
61 /* SDP record handle size */
93 /* buffer for collecting record data */
139 * @brief SDP service record iterator callback.
141 * @param rec Service record found.
144 * @return BT_SDP_ITER_CONTINUE if should continue to the next service record
413 /* @brief SDP service record iterator.
420 * @return Pointer to the record where the iterator stopped, or NULL if all
438 /* @brief Inserts a service record into a record pointer list
440 * Inserts a service record into a record pointer list
442 * @param rec The current service record.
443 * @param user_data Pointer to the destination record list.
445 * @return BT_SDP_ITER_CONTINUE to move on to the next record.
458 * Parses out a sequence of UUIDs from an input buffer, and checks if a record
459 * in the list contains all the UUIDs. If it doesn't, the record is removed
473 struct bt_sdp_record *record; in find_services() local
541 record = matching_recs[rec_idx]; in find_services()
543 if (!record) { in find_services()
550 for (att_idx = 0U; att_idx < record->attr_count; in find_services()
552 search_uuid(&record->attrs[att_idx].val, in find_services()
559 /* Remove the record from the list if it doesn't have in find_services()
586 struct bt_sdp_record *record; in sdp_svc_search_req() local
645 record = matching_recs[cont_state]; in sdp_svc_search_req()
647 if (!record) { in sdp_svc_search_req()
660 /* 4 bytes per Service Record Handle */ in sdp_svc_search_req()
684 /* Add the service record handle to the packet */ in sdp_svc_search_req()
685 net_buf_add_be32(resp_buf, record->handle); in sdp_svc_search_req()
779 * Iterate over attributes of a service record from a starting index.
781 * @param record Service record whose attributes are to be iterated over.
788 static uint8_t bt_sdp_foreach_attr(struct bt_sdp_record *record, uint8_t idx, in bt_sdp_foreach_attr() argument
791 for (; idx < record->attr_count; idx++) { in bt_sdp_foreach_attr()
792 if (func(&record->attrs[idx], idx, user_data) == in bt_sdp_foreach_attr()
927 * Populates the attribute list of a service record in the buffer. To be used
931 * @param record Service record whose attributes are to be included in the
944 static uint16_t create_attr_list(struct bt_sdp *sdp, struct bt_sdp_record *record, in create_attr_list() argument
954 sad.rec = record; in create_attr_list()
1046 * @param rec The current service record
1047 * @param user_data Pointer to the service record handle to be matched
1049 * @return BT_SDP_ITER_CONTINUE if should continue to the next record
1082 struct bt_sdp_record *record; in sdp_svc_att_req() local
1134 record = bt_sdp_foreach_svc(find_handle, &svc_rec_hdl); in sdp_svc_att_req()
1136 if (!record) { in sdp_svc_att_req()
1143 state.current_svc = record->index; in sdp_svc_att_req()
1150 att_list_len = create_attr_list(sdp, record, filter, num_filters, in sdp_svc_att_req()
1200 struct bt_sdp_record *record; in sdp_svc_search_att_req() local
1275 record = matching_recs[next_svc]; in sdp_svc_search_att_req()
1277 if (!record) { in sdp_svc_search_att_req()
1281 att_list_len += create_attr_list(sdp, record, filter, in sdp_svc_search_att_req()
1455 LOG_ERR("No service record specified"); in bt_sdp_register_service()
1518 /* Set maximum number of service record handles */ in sdp_client_ss_search()
1548 /* Add service record handle */ in sdp_client_sa_search()
1788 LOG_WRN("Invalid service record handle length"); in get_ss_record_len()
1842 LOG_DBG("Record len %u", len); in get_record_len()
1871 /* tell the user about multi record resolution */ in sdp_client_notify_result()
1883 * Set user internal result buffer length as same as record in sdp_client_notify_result()
1884 * length to fake user. User will see the individual record in sdp_client_notify_result()
1894 * sync session buffer data length with next record chunk not in sdp_client_notify_result()
1918 /* Get total service record count. */ in sdp_client_receive_ss()
1927 /* Get current service record count. */ in sdp_client_receive_ss()
1929 /* Check valid of current service record count */ in sdp_client_receive_ss()
1931 LOG_ERR("Invalid current service record count"); in sdp_client_receive_ss()
1961 * No record found for given UUID. The check catches case when in sdp_client_receive_ss()
1966 LOG_DBG("Service record handle 0x%x not found", session->param->handle); in sdp_client_receive_ss()
2042 * No record found for given UUID. The check catches case when in sdp_client_receive_ssa_sa()
2047 LOG_DBG("Record for UUID 0x%s not found", bt_uuid_str(session->param->uuid)); in sdp_client_receive_ssa_sa()