/foundation/communication/bluetooth_service/services/bluetooth/stack/src/sdp/ |
H A D | sdp_client.c | 106 static uint16_t SdpCreateSearchRequest(const BtUuid *uuidArray, uint16_t uuidNum, uint8_t *buffer) in SdpCreateSearchRequest() argument 115 offset = SdpAddAttributeForUuid(buffer, offset, &uuidArray[i]); in SdpCreateSearchRequest() 143 const BtUuid *uuidArray, uint16_t uuidNum, SdpAttributeIdList attributeIdList, uint8_t *buffer) in SdpCreateSearchAttributeRequest() 152 offset = SdpAddAttributeForUuid(buffer, offset, &uuidArray[i]); in SdpCreateSearchAttributeRequest() 177 int SdpServiceSearch(const BtAddr *addr, const SdpUuid *uuidArray, void *context, in SdpServiceSearch() argument 180 LOG_INFO("[%{public}s][%{public}d] uuidNum = [%hu]", __FUNCTION__, __LINE__, uuidArray->uuidNum); in SdpServiceSearch() 193 buffer = MEM_MALLOC.alloc(uuidArray->uuidNum * SDP_UUID_ATTRIBUTE_LENGTH + SDP_SEARCH_LENGTH); in SdpServiceSearch() 195 (uuidArray->uuidNum * SDP_UUID_ATTRIBUTE_LENGTH + SDP_SEARCH_LENGTH), in SdpServiceSearch() 197 (uuidArray->uuidNum * SDP_UUID_ATTRIBUTE_LENGTH + SDP_SEARCH_LENGTH)); in SdpServiceSearch() 199 length = SdpCreateSearchRequest(uuidArray in SdpServiceSearch() 142 SdpCreateSearchAttributeRequest( const BtUuid *uuidArray, uint16_t uuidNum, SdpAttributeIdList attributeIdList, uint8_t *buffer) SdpCreateSearchAttributeRequest() argument 265 SdpServiceSearchAttribute(const BtAddr *addr, const SdpUuid *uuidArray, SdpAttributeIdList attributeIdList, void *context, void (*searchAttributeCb)(const BtAddr *addr, const SdpService *serviceArray, uint16_t serviceNum, void *context)) SdpServiceSearchAttribute() argument [all...] |
H A D | sdp_client.h | 32 int SdpServiceSearch(const BtAddr *addr, const SdpUuid *uuidArray, void *context, 36 int SdpServiceSearchAttribute(const BtAddr *addr, const SdpUuid *uuidArray, SdpAttributeIdList attributeIdList,
|
H A D | sdp_server.c | 77 uint8_t uuidArray[][20], int uuidNum, uint32_t *handleArray, uint16_t handleNum, uint16_t maxRecordCount); 1106 uint16_t lcid, uint16_t transactionId, uint8_t uuidArray[][20], int uuidNum, uint16_t maximumServiceRecordCount) in SdpCreateSearchResponse() 1125 handleNum = GetRecordHandleArray(uuidArray, uuidNum, handleArray, handleNum, maximumServiceRecordCount); in SdpCreateSearchResponse() 1138 static int SdpGetUuidArray(uint8_t *buffer, uint16_t pos, uint16_t length, uint8_t uuidArray[][20]) in SdpGetUuidArray() argument 1151 (void)memcpy_s(uuidArray + uuidNum, SDP_UUID16_LENGTH + 1, buffer + offset + pos, SDP_UUID16_LENGTH + 1); in SdpGetUuidArray() 1155 (void)memcpy_s(uuidArray + uuidNum, SDP_UUID32_LENGTH + 1, buffer + offset + pos, SDP_UUID32_LENGTH + 1); in SdpGetUuidArray() 1159 (void)memcpy_s(uuidArray + uuidNum, SDP_UUID128_LENGTH + 1, buffer + offset + pos, SDP_UUID128_LENGTH + 1); in SdpGetUuidArray() 1172 uint8_t uuidArray[SDP_MAX_UUID_COUNT][20]; in SdpParseSearchRequest() local 1223 (void)memset_s(uuidArray, sizeof(uuidArray), in SdpParseSearchRequest() 1105 SdpCreateSearchResponse( uint16_t lcid, uint16_t transactionId, uint8_t uuidArray[][20], int uuidNum, uint16_t maximumServiceRecordCount) SdpCreateSearchResponse() argument 1432 uint8_t uuidArray[SDP_MAX_UUID_COUNT][20] = {0}; BuildServiceRecordHandleList() local 1903 GetRecordHandleNumber( ServiceRecordItem *item, uint8_t uuidArray[][20], int uuidNum, uint32_t *handleArray, uint16_t handleNum) GetRecordHandleNumber() argument 1918 GetRecordHandleArray( uint8_t uuidArray[][20], int uuidNum, uint32_t *handleArray, uint16_t handleNum, uint16_t maxRecordCount) GetRecordHandleArray() argument [all...] |
H A D | sdp.c | 166 SdpUuid uuidArray; member 185 SdpUuid uuidArray; member 1235 ctx->result = SdpServiceSearch(&ctx->addr, &ctx->uuidArray, ctx->context, ctx->ServiceSearchCb); in SdpServiceSearchTask() 1241 int SDP_ServiceSearch(const BtAddr *addr, const SdpUuid *uuidArray, void *context, in SDP_ServiceSearch() argument 1255 (void)memcpy_s(&ctx->uuidArray, sizeof(SdpUuid), uuidArray, sizeof(SdpUuid)); in SDP_ServiceSearch() 1326 &ctx->addr, &ctx->uuidArray, ctx->attributeIdList, ctx->context, ctx->ServiceSearchAttributeCb); in SdpServiceSearchAttributeTask() 1332 int SDP_ServiceSearchAttribute(const BtAddr *addr, const SdpUuid *uuidArray, SdpAttributeIdList attributeIdList, in SDP_ServiceSearchAttribute() argument 1347 (void)memcpy_s(&ctx->uuidArray, sizeof(SdpUuid), uuidArray, sizeo in SDP_ServiceSearchAttribute() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/stack/include/ |
H A D | sdp.h | 488 * @param uuidArray The list of uuids. 494 int BTSTACK_API SDP_ServiceSearch(const BtAddr *addr, const SdpUuid *uuidArray, void *context, 517 * @param uuidArray The list of uuids. 524 int BTSTACK_API SDP_ServiceSearchAttribute(const BtAddr *addr, const SdpUuid *uuidArray,
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/classic/ |
H A D | classic_adapter.cpp | 1669 SdpUuid uuidArray; in SearchRemoteUuids() local 1670 uuidArray.uuid = &btUuid[0]; in SearchRemoteUuids() 1671 uuidArray.uuidNum = 1; in SearchRemoteUuids() 1677 int ret = SDP_ServiceSearchAttribute(&btAddr, &uuidArray, attributeIdList, (void *)this, ServiceSearchAttributeCb); in SearchRemoteUuids()
|