Mulai 27 Maret 2025, sebaiknya gunakan android-latest-release
, bukan aosp-main
, untuk mem-build dan berkontribusi pada AOSP. Untuk mengetahui informasi selengkapnya, lihat Perubahan pada AOSP.
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Referensi Struct btsdp_interface_t
#include <
bt_sdp.h
>
Definisi di baris
120
file
bt_sdp.h
.
Gunakan listen di antarmuka soket untuk membuat saluran PSM rfcomm dan/atau l2cap, (tanpa UUID dan service_name serta tetapkan flag BTSOCK_FLAG_NO_SDP di flag). Kemudian, gunakan createSdpRecord untuk membuat data SDP yang terkait dengan saluran rfcomm/l2cap.
Menampilkan nama sebutan ke data SDP, yang dapat diuraikan ke remove_sdp_record.
record (in) Data SDP untuk membuat record_handle (out) Handle data yang sesuai akan ditulis ke pointer ini.
Definisi di baris
143
dari file
bt_sdp.h
.
Membatalkan pendaftaran BT SDP
Definisi di baris
128
dari file
bt_sdp.h
.
Mendaftarkan callback penelusuran BT SDP
Definisi di baris
125
dari file
bt_sdp.h
.
Menghapus data SDP yang dibuat oleh createSdpRecord
Definisi di baris
146
dari file
bt_sdp.h
.
bt_status_t
(* sdp_search)(bt_bdaddr_t *bd_addr, const uint8_t *uuid)
|
Menelusuri data SDP dengan UUID tertentu di perangkat jarak jauh
Definisi di baris
131
dari file
bt_sdp.h
.
Tetapkan ke ukuran struct ini
Definisi di baris
122
dari file
bt_sdp.h
.
Dokumentasi untuk struct ini dibuat dari file berikut:
-
hardware/libhardware/include/hardware/
bt_sdp.h
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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)"]]