2025년 3월 27일부터 AOSP를 빌드하고 기여하려면 aosp-main
대신 android-latest-release
를 사용하는 것이 좋습니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
btsdp_interface_t 구조체 참조
#include <
bt_sdp.h
>
bt_sdp.h
파일의
120
번 째 줄에 정의되어 있습니다.
소켓 인터페이스에서 listen을 사용하여 rfcomm 또는 l2cap PSM 채널을 만듭니다(UUID 및 service_name 없이, flags에 BTSOCK_FLAG_NO_SDP 플래그 설정). 그런 다음 createSdpRecord를 사용하여 rfcomm/l2cap 채널과 연결된 SDP 레코드를 만듭니다.
SDP 레코드의 핸들을 반환합니다. 이 핸들은 파싱하여 remove_sdp_record를 호출할 수 있습니다.
record (in): record_handle을 만들 SDP 레코드입니다. (out): 해당 레코드 핸들이 이 포인터에 작성됩니다.
bt_sdp.h
파일의
143
번 라인에 정의되어 있습니다.
createSdpRecord로 생성된 SDP 레코드 삭제
bt_sdp.h
파일의
146
번 라인에 정의되어 있습니다.
bt_status_t
(* sdp_search)(bt_bdaddr_t *bd_addr, const uint8_t *uuid)
|
원격 기기에서 특정 UUID가 있는 SDP 레코드 검색
bt_sdp.h
파일의
131
번 라인에 정의되어 있습니다.
이 구조체에 관한 문서는 다음 파일에서 생성되었습니다.
-
hardware/libhardware/include/hardware/
bt_sdp.h
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-27(UTC)"],[],[],null,["# Android Hardware Abstraction Layer: btsdp_interface_t Struct Reference\n\nbtsdp_interface_t Struct Reference\n==================================\n\n[Data Fields](#pub-attribs) \nbtsdp_interface_t Struct Reference \n\n`\n#include \u003c\n`[bt_sdp.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_sdp.h)`\n\u003e\n`\n\n|-------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| size_t | [size](/reference/hal/structbtsdp__interface__t#a854352f53b148adc24983a58a1866d66) |\n| ||\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* | [init](/reference/hal/structbtsdp__interface__t#a1fc7441984c7bf89fc8bb4719b943db4) )( [btsdp_callbacks_t](/reference/hal/structbtsdp__callbacks__t) \\*callbacks) |\n| ||\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* | [deinit](/reference/hal/structbtsdp__interface__t#a6d26449b7562197ad32b98495759085e) )() |\n| ||\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* | [sdp_search](/reference/hal/structbtsdp__interface__t#a58527da515be3086e14b10e1c5f13f7b) )(bt_bdaddr_t \\*bd_addr, const uint8_t \\*uuid) |\n| ||\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* | [create_sdp_record](/reference/hal/structbtsdp__interface__t#a73db7398c35a3aa6fed7a67284f496d0) )( [bluetooth_sdp_record](/reference/hal/unionbluetooth__sdp__record) \\*record, int \\*record_handle) |\n| ||\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* | [remove_sdp_record](/reference/hal/structbtsdp__interface__t#a5edc4376964673ce7817eb7143bc9d0f) )(int sdp_handle) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nDefinition at line\n[120](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_sdp.h)\nof file\n[bt_sdp.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_sdp.h)\n.\n\nField Documentation\n-------------------\n\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* create_sdp_record)( [bluetooth_sdp_record](/reference/hal/unionbluetooth__sdp__record) \\*record, int \\*record_handle) |\n\n\nUse listen in the socket interface to create rfcomm and/or l2cap PSM channels, (without UUID and service_name and set the BTSOCK_FLAG_NO_SDP flag in flags). Then use createSdpRecord to create the SDP record associated with the rfcomm/l2cap channels.\n\n\nReturns a handle to the SDP record, which can be parsed to remove_sdp_record.\n\n\nrecord (in) The SDP record to create record_handle (out)The corresponding record handle will be written to this pointer.\n\n\nDefinition at line\n[143](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_sdp.h)\nof file\n[bt_sdp.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_sdp.h)\n.\n\n|-----------------------------------------------------------------------------------------------------------------------------------|\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* deinit)() |\n\n\nUnregister BT SDP\n\n\nDefinition at line\n[128](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_sdp.h)\nof file\n[bt_sdp.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_sdp.h)\n.\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* init)( [btsdp_callbacks_t](/reference/hal/structbtsdp__callbacks__t) \\*callbacks) |\n\n\nRegister BT SDP search callbacks\n\n\nDefinition at line\n[125](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_sdp.h)\nof file\n[bt_sdp.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_sdp.h)\n.\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* remove_sdp_record)(int sdp_handle) |\n\n\nRemove a SDP record created by createSdpRecord\n\n\nDefinition at line\n[146](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_sdp.h)\nof file\n[bt_sdp.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_sdp.h)\n.\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* sdp_search)(bt_bdaddr_t \\*bd_addr, const uint8_t \\*uuid) |\n\n\nSearch for SDP records with specific uuid on remote device\n\n\nDefinition at line\n[131](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_sdp.h)\nof file\n[bt_sdp.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_sdp.h)\n.\n\n|-------------|\n| size_t size |\n\n\nSet to size of this struct\n\n\nDefinition at line\n[122](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_sdp.h)\nof file\n[bt_sdp.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_sdp.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [bt_sdp.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_sdp.h)"]]