Home | History | Annotate | Download | only in sdp

Lines Matching full:handle

21  *  this file contains functions that handle the database
155 ** Description This function searches for a record with a specific handle
156 ** It is passed the handle of the record.
161 tSDP_RECORD *sdp_db_find_record (UINT32 handle)
166 /* Look through the records for the caller's handle */
169 if (p_rec->record_handle == handle)
173 /* Record with that handle not found. */
276 ** Returns Record handle if OK, else 0.
282 UINT32 handle;
292 /* We will use a handle of the first unreserved handle plus last record
295 handle = p_db->record[p_db->num_records - 1].record_handle + 1;
297 handle = 0x10000;
299 p_db->record[p_db->num_records].record_handle = handle;
303 /* Add the first attribute (the handle) automatically */
304 UINT32_TO_BE_FIELD (buf, handle);
305 SDP_AddAttribute (handle, ATTR_ID_SERVICE_RECORD_HDL, UINT_DESC_TYPE,
324 ** If a record handle of 0 is passed, all records are deleted.
329 BOOLEAN SDP_DeleteRecord (UINT32 handle)
335 if (handle == 0 || sdp_cb.server_db.num_records == 0)
350 if (p_rec->record_handle == handle)
367 if( sdp_cb.server_db.di_primary_handle == handle )
395 BOOLEAN SDP_AddAttribute (UINT32 handle, UINT16 attr_id, UINT8 attr_type,
420 SDP_TRACE_DEBUG("SDP_AddAttribute: handle:%X, id:%04X, type:%d, len:%d, p_val:%p, *p_val:%s",
421 handle,attr_id,attr_type,attr_len,p_val,num_array);
425 SDP_TRACE_DEBUG("SDP_AddAttribute: handle:%X, id:%04X, type:%d, len:%d, p_val:%p, *p_val:%d",
426 handle,attr_id,attr_type,attr_len,p_val,*p_val);
430 SDP_TRACE_DEBUG("SDP_AddAttribute: handle:%X, id:%04X, type:%d, len:%d, p_val:%p, *p_val:%s",
431 handle,attr_id,attr_type,attr_len,p_val,p_val);
439 if (p_rec->record_handle == handle)
449 SDP_DeleteAttribute (handle, attr_id);
527 BOOLEAN SDP_AddSequence (UINT32 handle, UINT16 attr_id, UINT16 num_elem,
589 result = SDP_AddAttribute (handle, attr_id, DATA_ELE_SEQ_DESC_TYPE,(UINT32) (p - p_buff), p_buff);
610 BOOLEAN SDP_AddUuidSequence (UINT32 handle, UINT16 attr_id, UINT16 num_uuids,
640 result = SDP_AddAttribute (handle, attr_id, DATA_ELE_SEQ_DESC_TYPE,(UINT32) (p - p_buff), p_buff);
660 BOOLEAN SDP_AddProtocolList (UINT32 handle, UINT16 num_elem,
675 result = SDP_AddAttribute (handle, ATTR_ID_PROTOCOL_DESC_LIST,DATA_ELE_SEQ_DESC_TYPE, (UINT32) offset, p_buff);
696 BOOLEAN SDP_AddAdditionProtoLists (UINT32 handle, UINT16 num_elem,
726 result = SDP_AddAttribute (handle, ATTR_ID_ADDITION_PROTO_DESC_LISTS,DATA_ELE_SEQ_DESC_TYPE,
748 BOOLEAN SDP_AddProfileDescriptorList (UINT32 handle, UINT16 profile_uuid,
775 result = SDP_AddAttribute (handle, ATTR_ID_BT_PROFILE_DESC_LIST,DATA_ELE_SEQ_DESC_TYPE, (UINT32) (p - p_buff), p_buff);
797 BOOLEAN SDP_AddLanguageBaseAttrIDList (UINT32 handle, UINT16 lang,
823 result = SDP_AddAttribute (handle, ATTR_ID_LANGUAGE_BASE_ATTR_ID_LIST,DATA_ELE_SEQ_DESC_TYPE,
845 BOOLEAN SDP_AddServiceClassIdList (UINT32 handle, UINT16 num_services,
867 result = SDP_AddAttribute (handle, ATTR_ID_SERVICE_CLASS_ID_LIST,DATA_ELE_SEQ_DESC_TYPE,
887 BOOLEAN SDP_DeleteAttribute (UINT32 handle, UINT16 attr_id)
898 if (p_rec->record_handle == handle)
902 SDP_TRACE_API("Deleting attr_id 0x%04x for handle 0x%x", attr_id, handle);
952 ** with the given handle from the database.
961 INT32 SDP_ReadRecord(UINT32 handle, UINT8 *p_data, INT32 *p_data_len)
974 p_rec = sdp_db_find_record(handle);