Lines Matching full:handle
80 * point will be linked to a specific SDP handle.
215 int handle = -1;
219 return handle;
222 handle = sdp_slots[id].sdp_handle;
236 handle = -1;
238 return handle;
267 static void set_sdp_handle(int id, int handle) {
269 sdp_slots[id].sdp_handle = handle;
271 BTIF_TRACE_DEBUG("%s() id=%d to handle=0x%08x", __FUNCTION__, id, handle);
276 int handle;
278 handle = alloc_sdp_slot(record);
279 BTIF_TRACE_DEBUG("%s() handle = 0x%08x", __FUNCTION__, handle);
281 if(handle < 0)
284 BTA_SdpCreateRecordByUser((void*) handle);
286 *record_handle = handle;
292 int handle;
294 /* Get the Record handle, and free the slot */
295 handle = free_sdp_slot(record_id);
296 BTIF_TRACE_DEBUG("Sdp Server %s id=%d to handle=0x%08x",
297 __FUNCTION__, record_id, handle);
299 /* Pass the actual record handle */
300 if(handle > 0) {
301 BTA_SdpRemoveRecordByUser((void*) handle);
326 int handle = -1;
329 handle = add_maps_sdp(&record->mas);
332 handle = add_mapc_sdp(&record->mns);
335 handle = add_pbaps_sdp(&record->pse);
338 handle = add_opps_sdp(&record->ops);
341 handle = add_saps_sdp(&record->sap);
349 if(handle != -1) {
350 set_sdp_handle(id, handle);
355 void on_remove_record_event(int handle) {
358 // User data carries the actual SDP handle, not the ID.
359 if(handle != -1 && handle != 0) {
361 result = SDP_DeleteRecord( handle );
363 BTIF_TRACE_ERROR(" Unable to remove handle 0x%08x", handle);
456 APPL_TRACE_DEBUG("%s(): SDP Registered (handle 0x%08x)", __func__, sdp_handle);
535 APPL_TRACE_DEBUG("%s(): SDP Registered (handle 0x%08x)", __func__, sdp_handle);
619 APPL_TRACE_DEBUG("%s(): SDP Registered (handle 0x%08x)", __func__, sdp_handle);
715 APPL_TRACE_DEBUG("%s(): SDP Registered (handle 0x%08x)", __func__, sdp_handle);
777 APPL_TRACE_DEBUG("%s(): SDP Registered (handle 0x%08x)", __func__, sdp_handle);