हमारा सुझाव है कि 27 मार्च, 2025 से AOSP को बनाने और उसमें योगदान देने के लिए, aosp-main
के बजाय android-latest-release
का इस्तेमाल करें. ज़्यादा जानकारी के लिए, AOSP में हुए बदलाव लेख पढ़ें.
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
btpan_interface_t स्ट्रक्चर का रेफ़रंस
#include <
bt_pan.h
>
bt_pan.h
फ़ाइल की लाइन
51
पर परिभाषा.
पैन इंटरफ़ेस को साफ़ करना
परिभाषा,
bt_pan.h
फ़ाइल की लाइन
81
पर दी गई है.
bt_status_t
(* connect)(const bt_bdaddr_t *bd_addr, int local_role, int remote_role)
|
पैन की तय की गई भूमिका के हिसाब से, रिमोट डिवाइस से ब्लूटूथ पैन कनेक्शन शुरू करें. नतीजे की स्थिति, btpan_connection_state_callback से वापस मिलेगी
परिभाषा, फ़ाइल
bt_pan.h
की लाइन
72
पर दी गई है.
ब्लूटूथ पैन कनेक्शन बंद करें. नतीजे की स्थिति, btpan_connection_state_callback से वापस मिलेगी
bt_pan.h
फ़ाइल की लाइन
76
पर दी गई परिभाषा
.
int(* get_local_role)(void)
|
पैन इंटरफ़ेस को शुरू करना और btpan कॉलबैक रजिस्टर करना
परिभाषा,
bt_pan.h
फ़ाइल की लाइन
57
पर दी गई है.
इस स्ट्रक्चर के साइज़ पर सेट करें
परिभाषा,
bt_pan.h
फ़ाइल की लाइन
53
पर दी गई है.
इस स्ट्रक्चर का दस्तावेज़, इस फ़ाइल से जनरेट किया गया था:
-
hardware/libhardware/include/hardware/
bt_pan.h
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, 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: btpan_interface_t Struct Reference\n\nbtpan_interface_t Struct Reference\n==================================\n\n[Data Fields](#pub-attribs) \nbtpan_interface_t Struct Reference \n\n`\n#include \u003c\n`[bt_pan.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)`\n\u003e\n`\n\n|-------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| size_t | [size](/reference/hal/structbtpan__interface__t#a854352f53b148adc24983a58a1866d66) |\n| ||\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* | [init](/reference/hal/structbtpan__interface__t#a139d48da5b60fab661a47441db247029) )(const [btpan_callbacks_t](/reference/hal/structbtpan__callbacks__t) \\*callbacks) |\n| ||\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* | [enable](/reference/hal/structbtpan__interface__t#ab81baf3a5d9598aa5d39480d1480e04f) )(int local_role) |\n| ||\n| int(\\* | [get_local_role](/reference/hal/structbtpan__interface__t#a78c6715bedb77bec4da8daad406ca076) )(void) |\n| ||\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* | [connect](/reference/hal/structbtpan__interface__t#ac150dfe85169472f9b7599d4d67db117) )(const bt_bdaddr_t \\*bd_addr, int local_role, int remote_role) |\n| ||\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* | [disconnect](/reference/hal/structbtpan__interface__t#ab3921da150db3f77cbdc9b340e136e02) )(const bt_bdaddr_t \\*bd_addr) |\n| ||\n| void(\\* | [cleanup](/reference/hal/structbtpan__interface__t#a8e1ba7348775abcd3cd56ec6f718bea0) )(void) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nDefinition at line\n[51](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\nof file\n[bt_pan.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\n.\n\nField Documentation\n-------------------\n\n\n|------------------------|\n| void(\\* cleanup)(void) |\n\n\nCleanup the pan interface\n\n\nDefinition at line\n[81](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\nof file\n[bt_pan.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\n.\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* connect)(const bt_bdaddr_t \\*bd_addr, int local_role, int remote_role) |\n\n\nstart bluetooth pan connection to the remote device by specified pan role. The result state will be returned by btpan_connection_state_callback\n\n\nDefinition at line\n[72](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\nof file\n[bt_pan.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\n.\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* disconnect)(const bt_bdaddr_t \\*bd_addr) |\n\n\nstop bluetooth pan connection. The result state will be returned by btpan_connection_state_callback\n\n\nDefinition at line\n[76](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\nof file\n[bt_pan.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\n.\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* enable)(int local_role) |\n\n\nDefinition at line\n[63](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\nof file\n[bt_pan.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\n.\n\n|------------------------------|\n| int(\\* get_local_role)(void) |\n\n\nDefinition at line\n[67](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\nof file\n[bt_pan.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\n.\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [bt_status_t](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bluetooth.h) (\\* init)(const [btpan_callbacks_t](/reference/hal/structbtpan__callbacks__t) \\*callbacks) |\n\n\nInitialize the pan interface and register the btpan callbacks\n\n\nDefinition at line\n[57](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\nof file\n[bt_pan.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\n.\n\n|-------------|\n| size_t size |\n\n\nset to size of this struct\n\n\nDefinition at line\n[53](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\nof file\n[bt_pan.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [bt_pan.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/bt_pan.h)"]]