Lines Matching defs:service_uuid
86 uint8_t service_uuid[16];
267 memcpy(rs->service_uuid, uuid, sizeof(rs->service_uuid));
268 else memset(rs->service_uuid, 0, sizeof(rs->service_uuid));
285 rfc_slot_t *accept_rs = alloc_rfc_slot(addr, srv_rs->service_name, srv_rs->service_uuid, srv_rs->scn, 0, FALSE);
307 bt_status_t btsock_rfc_listen(const char* service_name, const uint8_t* service_uuid, int channel,
312 if(sock_fd == NULL || (service_uuid == NULL && (channel < 1 || channel > 30)))
314 APPL_TRACE_ERROR3("invalid rfc channel:%d or sock_fd:%p, uuid:%p", channel, sock_fd, service_uuid);
320 if(is_uuid_empty(service_uuid))
321 service_uuid = UUID_SPP; //use serial port profile to listen to specified channel
324 //Check the service_uuid. overwrite the channel # if reserved
325 int reserved_channel = get_reserved_rfc_channel(service_uuid);
333 rfc_slot_t* rs = alloc_rfc_slot(NULL, service_name, service_uuid, channel, flags, TRUE);
346 bt_status_t btsock_rfc_connect(const bt_bdaddr_t *bd_addr, const uint8_t* service_uuid,
349 if(sock_fd == NULL || (service_uuid == NULL && (channel < 1 || channel > 30)))
352 service_uuid);
360 rfc_slot_t* rs = alloc_rfc_slot(bd_addr, NULL, service_uuid, channel, flags, FALSE);
363 if(is_uuid_empty(service_uuid))
385 memcpy(sdp_uuid.uu.uuid128, service_uuid, sizeof(sdp_uuid.uu.uuid128));
386 logu("service_uuid", service_uuid);
425 if((rs->sdp_handle = add_rfc_sdp_rec(rs->service_name, rs->service_uuid, rs->scn)) <= 0)
800 memcpy(sdp_uuid.uu.uuid128, rs->service_uuid, sizeof(sdp_uuid.uu.uuid128));